You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create download endpoint /files/download?... as well as /files/download/[[file_path]] #5
I'd like to work on this. Will implement both /files/download?file_path=... query-param endpoint and /files/download/[[file_path]] path-param endpoint, with proper content-disposition headers for browser download.
Implementing the download endpoint pair as a narrow backend change: query-param and path-param download URLs, plus tests and headers. I will keep the change focused and submit a PR with /claim #5 once verified.
Withdrawing my /attempt — on closer inspection the feature is already fully implemented in main (routes/files/download/[[...file_path]].ts) and PR #26 has clean test/doc coverage. Don't want to add noise. Thanks!
Plan: add focused documentation and regression coverage for the already-implemented download endpoint variants on current main: query download by file_id, nested path download via /files/download/..., README documentation, and the root route API index entry. I will keep the implementation unchanged and verify with tests/build/format before opening a scoped PR with /claim #5.
Plan: add focused documentation and API-index coverage for the existing download endpoint variants: document the query and path download URLs in README, advertise both forms from the root API index page, and add a small regression test that keeps those discoverability links present.
The /files/download?file_path=... and /files/download/[[file_path]] endpoints already exist in the codebase — implemented correctly with proper Content-Disposition: attachment headers for both text and binary files.
Add comprehensive documentation to README covering both download forms.
Update the API index page to list the download endpoints.
Add a dedicated test file (files-download.test.ts) with 8 tests covering all edge cases: query param download, file_id download, binary file byte verification, path form downloads, nested paths, and 404 handling.
Withdrawn: this bounty is already heavily claimed and rewarded, and we did not establish a clear non-duplicative gap on current main. No PR or bounty claim will be submitted from quickturn-ops for this issue.
Withdrawing my attempt — checked main and both download endpoints already exist (routes/files/download.ts and routes/files/download/), with the binary download test passing (29/29 green locally). Nothing non-duplicative to add; the issue looks resolved.
Plan: inspect the current file-server routing, add both download URL forms (/files/download?... and /files/download/[[file_path]]) with safe path handling and correct download headers, add focused tests for both forms and invalid/missing paths, then submit a focused PR with /claim #5.
Plan: both download endpoints (/files/download?file_path=... / ?file_id=... and /files/download/[[file_path]]) exist on main. Remaining gaps are discoverability and coverage, so I will:
Document both download forms in the README.
List the download endpoints on the root API index page.
Add focused regression tests (dedicated test file) covering file_id download, nested path download, and the index page listing.
Validate with full Bun tests, tsc typecheck, biome format check, build, and diff check.
Plan: the download endpoints exist, but Content-Disposition is built from the raw file path basename in routes/files/download.ts, routes/files/download/[[...file_path]].ts, and both proxy branches of lib/utils/resolve-file-proxy.ts — a non-ASCII or quote-containing filename produces a malformed header or a TypeError on Response construction. I will add a shared attachment Content-Disposition helper (preserve filename="" for safe names, emit sanitized fallback + RFC 5987 filename* for unsafe ones), wire it through all four download paths, add regression tests for non-ASCII and quoted filenames, and run bun test/build/typecheck/format before opening a focused PR with /claim #5.
Plan: implement both download URL forms with safe path handling and correct response headers, add endpoint tests for query/path variants and invalid paths, run the suite, and submit with /claim #5.
Plan: harden the download/get selector contract so requests cannot provide a file_id for one file together with a file_path for another and receive whichever record happens to match first. I will add focused regression coverage for both /files/get and /files/download, keep single-selector behavior unchanged, and submit a small PR with /claim #5.
Activity
algora-pbc commentedon Mar 22, 2025
💎 $10 bounty • tscircuit
Steps to solve:
/attempt #5with your implementation plan/claim #5in the PR body to claim the bounty❗ Important guidelines:
Thank you for contributing to tscircuit/file-server!
ArnavK-09 commentedon Mar 22, 2025
/attempt #5
HTML & more
algora-pbc commentedon Mar 22, 2025
💡 @ArnavK-09 submitted a pull request that claims the bounty. You can visit your bounty board to reward.
algora-pbc commentedon Mar 22, 2025
🎉🎈 @ArnavK-09 has been awarded $10! 🎈🎊
Iceshen87 commentedon Mar 1, 2026
Hi tscircuit team! 👋
I can create the download endpoint!
My Plan:
Timeline: 1-2 days
Bounty: $10 works for me!
Why I am a good fit:
Ready to start!
gavin-openops commentedon Mar 1, 2026
/attempt #5
Plan:
/files/download?...as well as/files/download/[[file_path]]#5.chengyixu commentedon May 7, 2026
/attempt #5
I'd like to work on this. Will implement both
/files/download?file_path=...query-param endpoint and/files/download/[[file_path]]path-param endpoint, with proper content-disposition headers for browser download.Expect a PR shortly.
arbazkhan971 commentedon May 11, 2026
/attempt #5
Implementing the download endpoint pair as a narrow backend change: query-param and path-param download URLs, plus tests and headers. I will keep the change focused and submit a PR with /claim #5 once verified.
arbazkhan971 commentedon May 11, 2026
Withdrawing my /attempt — on closer inspection the feature is already fully implemented in main (
routes/files/download/[[...file_path]].ts) and PR #26 has clean test/doc coverage. Don't want to add noise. Thanks!huangse199 commentedon Jun 1, 2026
C:/Program Files/Git/attempt #5
yanziwei commentedon Jun 8, 2026
/attempt #5
Plan: add focused documentation and regression coverage for the already-implemented download endpoint variants on current main: query download by
file_id, nested path download via/files/download/..., README documentation, and the root route API index entry. I will keep the implementation unchanged and verify with tests/build/format before opening a scoped PR with/claim #5.snkk2x-collab commentedon Jun 18, 2026
/attempt #5
Plan: add focused documentation and API-index coverage for the existing download endpoint variants: document the query and path download URLs in README, advertise both forms from the root API index page, and add a small regression test that keeps those discoverability links present.
XananasX7 commentedon Jun 18, 2026
/attempt #5
Plan
/files/download?file_path=...and/files/download/[[file_path]]endpoints already exist in the codebase — implemented correctly with properContent-Disposition: attachmentheaders for both text and binary files.files-download.test.ts) with 8 tests covering all edge cases: query param download, file_id download, binary file byte verification, path form downloads, nested paths, and 404 handling.All 37 tests pass. Opening PR with
/claim #5.16 remaining items
cjaime708 commentedon Aug 18, 2026
Withdrawn: this bounty is already heavily claimed and rewarded, and we did not establish a clear non-duplicative gap on current main. No PR or bounty claim will be submitted from
quickturn-opsfor this issue.birdup000 commentedon Aug 29, 2026
/attempt #5
birdup000 commentedon Aug 29, 2026
Withdrawing my attempt — checked main and both download endpoints already exist (
routes/files/download.tsandroutes/files/download/), with the binary download test passing (29/29 green locally). Nothing non-duplicative to add; the issue looks resolved.zukolega5-ux commentedon Aug 29, 2026
/attempt #5
Plan: inspect the current file-server routing, add both download URL forms (
/files/download?...and/files/download/[[file_path]]) with safe path handling and correct download headers, add focused tests for both forms and invalid/missing paths, then submit a focused PR with/claim #5.saurav-codes commentedon Sep 8, 2026
/attempt #5
Plan: both download endpoints (
/files/download?file_path=.../?file_id=...and/files/download/[[file_path]]) exist on main. Remaining gaps are discoverability and coverage, so I will:file_iddownload, nested path download, and the index page listing.I will open a focused PR with
/claim #5.stffinfcti commentedon Sep 20, 2026
/attempt #5
Plan: the download endpoints exist, but Content-Disposition is built from the raw file path basename in routes/files/download.ts, routes/files/download/[[...file_path]].ts, and both proxy branches of lib/utils/resolve-file-proxy.ts — a non-ASCII or quote-containing filename produces a malformed header or a TypeError on Response construction. I will add a shared attachment Content-Disposition helper (preserve filename="" for safe names, emit sanitized fallback + RFC 5987 filename* for unsafe ones), wire it through all four download paths, add regression tests for non-ASCII and quoted filenames, and run bun test/build/typecheck/format before opening a focused PR with /claim #5.
expertedgevault-rgb commentedon Sep 22, 2026
/attempt #5
Plan: implement both download URL forms with safe path handling and correct response headers, add endpoint tests for query/path variants and invalid paths, run the suite, and submit with
/claim #5.infosbighouse-glitch commentedon Sep 22, 2026
/attempt #5
Plan: harden the download/get selector contract so requests cannot provide a file_id for one file together with a file_path for another and receive whichever record happens to match first. I will add focused regression coverage for both /files/get and /files/download, keep single-selector behavior unchanged, and submit a small PR with /claim #5.
Prom11111 commentedon Sep 23, 2026
/attempt
alfendysoon-hub commentedon Sep 27, 2026
/attempt #5
Ratanlavate commentedon Oct 11, 2026
/attempt #5
Plan:
fix: solve bounty issue tscircuit#5 (Chrysalis autonomous agent)
fix: solve bounty issue tscircuit#5 (Chrysalis autonomous agent)
Lion0871 commentedon Oct 22, 2026
/attempt #5
Plan: implement both download endpoints (
/files/download?file_id=&file_path=and `/files/download/[[file_path]]) with normalized paths, proper Content-Disposition/Content-Type handling, and endpoint tests covering query-form, path-form, missing file, and conflicting-selector cases. Focused, test-only + minimal handler changes, no overlap with existing open PRs (#160-168 touch proxy/normalizePath only).feat: add /files/download/[[file_path]] endpoint (tscircuit#5)