René's URL Explorer Experiment


Title: feat(input-format): upload files in file fields via the file uploader by waleedlatif1 · Pull Request #5297 · simstudioai/sim · GitHub

Open Graph Title: feat(input-format): upload files in file fields via the file uploader by waleedlatif1 · Pull Request #5297 · simstudioai/sim

X Title: feat(input-format): upload files in file fields via the file uploader by waleedlatif1 · Pull Request #5297 · simstudioai/sim

Description: Summary The start-block input format's file field only offered a raw JSON editor expecting hand-written base64 objects. Production data confirms it's misused — of 766 blocks with a file field, only 13 had a value and nearly all were junk (local paths, raw text, leftover placeholders). It also never actually fed a run. Reuse the existing FileUpload component for file-typed fields, with a toggle to fall back to the raw JSON editor for power users / legacy values. Added an opt-in controlled mode (value / onValueChange) to FileUpload so it can be embedded where the value lives outside a subblock. Store-bound consumers (stt / vision / agent) are untouched. File-field detection is normalized (file[] / files / file / image) so copilot/API-authored variants render correctly too. Editor-attached files (already uploaded, run-ready) are wired into manual runs via the executor's files channel; chat/API runs still override. Backwards compatibility The inputFormat array shape is unchanged — file values are stored as a JSON string of run-ready file objects, so every existing reader stays compatible. No DB migration. Legacy free-form values open in JSON mode, so nothing is lost; the uploader is the default only for empty/already-structured values. Variables panel deliberately untouched (no file type there); a "Files" variable type is a separate follow-up since it needs executor variable-resolver work. Type of Change New feature Testing Added unit tests for the new pure helpers (isFileFieldType, parseInputFormatFiles); lib/workflows/input-format.test.ts passes (32 tests). tsc clean for all changed files; tested manually. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary The start-block input format's file field only offered a raw JSON editor expecting hand-written base64 objects. Production data confirms it's misused — of 766 blocks with a file fi...

X Description: Summary The start-block input format's file field only offered a raw JSON editor expecting hand-written base64 objects. Production data confirms it's misused — of 766 blocks with a...

Opengraph URL: https://github.com/simstudioai/sim/pull/5297

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:56bbbf75-0270-dd68-2aff-ac0cf9f70566
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88DA:89F85:51AE75:75E021:6AFB3E82
html-safe-noncedb7cf88b8ef21ce96e9995188a5a44954264ffa66b9405efbb3a48e61a3ab652
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OERBOjg5Rjg1OjUxQUU3NTo3NUUwMjE6NkFGQjNFODIiLCJ2aXNpdG9yX2lkIjoiODc2NTgzODI5MDgyMjMxNTY1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac93700801880d3c8575a4a89cb7405816ae8629660294c8c14405b597955ed682
hovercard-subject-tagpull_request:3966280625
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5297/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary The start-block input format's file field only offered a raw JSON editor expecting hand-written base64 objects. Production data confirms it's misused — of 766 blocks with a file fi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5297/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5297%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5297%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5297/files
Reloadhttps://github.com/simstudioai/sim/pull/5297/files
Reloadhttps://github.com/simstudioai/sim/pull/5297/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests202 (202)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/file-input-dropzonehttps://github.com/simstudioai/sim/tree/feat/file-input-dropzone
Conversation 47 https://github.com/simstudioai/sim/pull/5297
Commits 9 https://github.com/simstudioai/sim/pull/5297/commits
Checks 14 https://github.com/simstudioai/sim/pull/5297/checks
Files changed https://github.com/simstudioai/sim/pull/5297/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5297/files
feat(input-format): upload files in file fields via the file uploader https://github.com/simstudioai/sim/pull/5297/files#top
Show all changes 9 commits https://github.com/simstudioai/sim/pull/5297/files
50bab80 feat(input-format): upload files in file fields via the file uploader waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/50bab8094346fe62883fa8646d64cd856a3687c6
f7ca85a refactor(input-format): extract file adapters, share run-input builde… waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/f7ca85acd0cb5f8c415095fc806945cbe4ec545a
8812340 fix(input-format): require run-ready file shape, don't clobber named … waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/881234047dcd7620005a0636414c819a995aadd3
7f490d5 fix(input-format): require file key, keep mixed/partial values in JSO… waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/7f490d560e2cf372b6928a56e4842dd067574405
a028114 fix(input-format): recover internal-url keys, gate uploader to lossle… waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/a028114b5b1c332d14b4b1d2dc46fce51152082e
f2718e9 fix(input-format): require non-empty id/name/url/type in parseInputFo… waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/f2718e90b816196ce6f4ec7655e871c740b79ad6
519917a fix(input-format): validate recovered internal-url keys via parseInte… waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/519917a3bb718e5fd731ecaa4e1eb9bcee584c3b
47952a7 fix(input-format): uploaded files always own the files channel waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/47952a73c967213995a16d31afd5dddc592efaad
701abc6 chore(input-format): tighten parseInputFormatFiles comment waleedlatif1 Jun 30, 2026 https://github.com/simstudioai/sim/pull/5297/commits/701abc68aa8f46930b6e33bf5095107512c93085
Clear filters https://github.com/simstudioai/sim/pull/5297/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5297/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5297/files
file-upload.tsx https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
input-format-files.test.ts https://github.com/simstudioai/sim/pull/5297/files#diff-98d313d0ed46260c0fa1f82e08eba0e45cae2ee2ff59bdc28ccb82f42679131f
input-format-files.ts https://github.com/simstudioai/sim/pull/5297/files#diff-ef17e6d70cb1ce50b87a17044140c8bfe90fb62fd356d45b907a21c5adb23233
input-format.tsx https://github.com/simstudioai/sim/pull/5297/files#diff-9742b1f9263ca74fa9c855582d336ab84a5472d80b354abfa94ff077d05c5483
use-workflow-execution.ts https://github.com/simstudioai/sim/pull/5297/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
input-format.test.ts https://github.com/simstudioai/sim/pull/5297/files#diff-e3935848811b805ab5e05e8242ebab395ce0852b30c772fdc46dd7adf53e46df
input-format.ts https://github.com/simstudioai/sim/pull/5297/files#diff-d7e2defd854b58b03acb30e69aba6366f00e1f805767dc2608691198141efc20
...nents/panel/components/editor/components/sub-block/components/file-upload/file-upload.tsxhttps://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
View file https://github.com/simstudioai/sim/blob/701abc68aa8f46930b6e33bf5095107512c93085/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/components/file-upload/file-upload.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5297/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
https://github.com/simstudioai/sim/pull/5297/files#diff-be74e921ac7cdf3b7931b69678124ee2fed74d4fe30a679366f5a692722589e9
...anel/components/editor/components/sub-block/components/starter/input-format-files.test.tshttps://github.com/simstudioai/sim/pull/5297/files#diff-98d313d0ed46260c0fa1f82e08eba0e45cae2ee2ff59bdc28ccb82f42679131f
View file https://github.com/simstudioai/sim/blob/701abc68aa8f46930b6e33bf5095107512c93085/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/components/starter/input-format-files.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5297/{{ revealButtonHref }}
...nts/panel/components/editor/components/sub-block/components/starter/input-format-files.tshttps://github.com/simstudioai/sim/pull/5297/files#diff-ef17e6d70cb1ce50b87a17044140c8bfe90fb62fd356d45b907a21c5adb23233
View file https://github.com/simstudioai/sim/blob/701abc68aa8f46930b6e33bf5095107512c93085/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/components/starter/input-format-files.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5297/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5297/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5297/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.