| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:60a6334e-5ea6-442d-3d79-106e73dce6fc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8C36:2F3C5F:A9542:F39CC:6AFB1C42 |
| html-safe-nonce | 420dbb7c4988b108688da813661adb29d2c28741058c9c7e252aec14897a8664 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzM2OjJGM0M1RjpBOTU0MjpGMzlDQzo2QUZCMUM0MiIsInZpc2l0b3JfaWQiOiI2MDAyNzk3MTA3MTM5Nzc5MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a7f3572cd2c4d0c17c1c2b90fde8923067cac951c71680c23af475f93e42e074 |
| hovercard-subject-tag | pull_request:5102401008 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9542/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary
/api/files/serve read every file fully into memory and refused anything over 100 MB (413), while workspace files are admitted up to 5 GB, so large files (e.g. agent-rendered videos) could ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24933791aba0f10b2f189f8b953a1452dd79933933ac13a0a67b8ad3acee3d9f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 030711cc180b563614a434f4376acf7da5d445fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/9542/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9542%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9542%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/simstudioai/sim/pull/9542/files |
| Reload | https://github.com/simstudioai/sim/pull/9542/files |
| Reload | https://github.com/simstudioai/sim/pull/9542/files |
| simstudioai | https://github.com/simstudioai |
| sim | https://github.com/simstudioai/sim |
| Code | https://github.com/simstudioai/sim |
| Issues129 (129) | https://github.com/simstudioai/sim/issues |
| Pull requests198 (198) | https://github.com/simstudioai/sim/pulls |
| Actions | https://github.com/simstudioai/sim/actions |
| Projects | https://github.com/simstudioai/sim/projects |
| Security and quality | https://github.com/simstudioai/sim/security |
| Insights | https://github.com/simstudioai/sim/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| waleedlatif1 | https://github.com/waleedlatif1 |
| staging | https://github.com/simstudioai/sim/tree/staging |
| fix/file-serve-streaming | https://github.com/simstudioai/sim/tree/fix/file-serve-streaming |
|
Conversation
30
| https://github.com/simstudioai/sim/pull/9542 |
|
Commits
3
| https://github.com/simstudioai/sim/pull/9542/commits |
|
Checks
68
| https://github.com/simstudioai/sim/pull/9542/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/9542/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
|
fix(files): stream served files with byte ranges instead of buffering them under 100 MB
| https://github.com/simstudioai/sim/pull/9542/files#top |
|
Show all changes
3 commits
| https://github.com/simstudioai/sim/pull/9542/files |
|
9873df0
fix(files): stream served files with byte ranges instead of buffering…
waleedlatif1 Oct 31, 2026
| https://github.com/simstudioai/sim/pull/9542/commits/9873df03881b5455a0dcb39e596525d9ea45ef85 |
|
fc1e8ea
fix(files): stream finished document uploads, diagnose playback error…
waleedlatif1 Oct 31, 2026
| https://github.com/simstudioai/sim/pull/9542/commits/fc1e8ea5daa64400d6de43c0744caa556d7635eb |
|
75dacb4
fix(files): probe served bytes before handing off, keep generated doc…
waleedlatif1 Oct 31, 2026
| https://github.com/simstudioai/sim/pull/9542/commits/75dacb4fefe590d6aa6b52fbba0bb37c2e2a146f |
|
Clear filters
| https://github.com/simstudioai/sim/pull/9542/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f |
|
route.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
utils.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-cf0dbd7a02f4ac25fd4c864b014708c1d978d75efe972fae5ffcb021be58a9d3 |
|
file-viewer.tsx
| https://github.com/simstudioai/sim/pull/9542/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948 |
|
memory-harness.integration.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-4fc60dda6412e66b9374ad5d3e0e91e9ac365f0de7e77198e28636341697ef07 |
|
workspace-files.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-29d9b6d312177176db7c67d2754eb013b3ee7dc842dbbdb481bed86f551d4f37 |
|
use-file-content-source.tsx
| https://github.com/simstudioai/sim/pull/9542/files#diff-90976156a39bdd21612371dd8e08cf7a466bbf188c03cc869cf3aaf9cf1ad73a |
|
download.test.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-159abfd488d5e6007b5fe158c035443cc3e6fa33f76ce499bca3ec135ba380c2 |
|
download.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-792c5cfd9d600277ea52e08970dfec8b42adb5439e7ee10c47b19e01f741aa70 |
|
storage-service.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-8768f26f6a6d271a9bf26da5650f60add71370858edf7f9fd68abbfe423030fd |
|
client.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-18c5e5601b785187c2869df9487f62855e73ffe29d37ec600f94f3163c2d5bce |
|
client.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-7afd9385c1ecdc50bf272485daac563680d8a3c9b2275a04befea14e21c86523 |
|
client.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-5b5c75fd8b0e84e44544dfe3eb319a86603568755f5568c5b4ce3007b519927e |
|
byte-range.test.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-82ebd376dee4985bf875d61ed31ec5e171620853f58c00e1a7e659433259cec2 |
|
byte-range.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-f5f73f06e498f5e13f8b2d23c53731d7344fa026b63d462121ebde041a4fc8ad |
|
delivery.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-1a70f50558db85a00d2709cdfa887369fd7fa6100efd797eb77b93395e72a65b |
|
types.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-9fe4883673f33f33785c7e6e3f5757e9329f88d2d6207a9dc82289b5acd3492b |
|
provider.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-17f676c7236206f73f675e44061995fc88665b2fc6102ba906900ad1b147d3fa |
|
read-workspace-file-record-by-key.test.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-ec4849619f451af06efbb72da2376b72e1eb336599df9299deff8838fe0d5f4a |
|
read-workspace-file-record-by-key.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-5d8f615b99c67714cea4a40b8aa1c0de5f7a66be4e559a56e68d083c41db375f |
|
read-workspace-inline-file.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-fd123fbfda6f10d48bf02de76d91d1d98421d391a938156ab5d5f67f52bb3497 |
|
stream-authorized-workspace-file.test.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-ff9bd8417a13cd9d7161f32131a68446c450407f17b45b0fb981e52c0e681765 |
|
stream-authorized-workspace-file.ts
| https://github.com/simstudioai/sim/pull/9542/files#diff-115eb32813da42bb7cb6630c45e93d35a6f89fb16bdf9cffda8f83a1e46a00f8 |
|
check-unused-exports.baseline.json
| https://github.com/simstudioai/sim/pull/9542/files#diff-4b59a8526a4f226dffb0fbf6b8ec25d3082ab45da697f584eaaca4bd483c928f |
| apps/sim/app/api/files/serve/[...path]/route.test.ts | https://github.com/simstudioai/sim/pull/9542/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f |
|
View file
| https://github.com/simstudioai/sim/blob/75dacb4fefe590d6aa6b52fbba0bb37c2e2a146f/apps/sim/app/api/files/serve/%5B...path%5D/route.test.ts |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
| apps/sim/app/api/files/serve/[...path]/route.ts | https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
View file
| https://github.com/simstudioai/sim/blob/75dacb4fefe590d6aa6b52fbba0bb37c2e2a146f/apps/sim/app/api/files/serve/%5B...path%5D/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/9542/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
|
| https://github.com/simstudioai/sim/pull/9542/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9 |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9542/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |