Skip to content

Create download endpoint /files/download?... as well as /files/download/[[file_path]] #5

Open

Description

@seveibar

This will allow easy-to-use download urls

/bounty $10

Activity

  1. algora-pbc commented on Mar 22, 2025

    @algora-pbc

    💎 $10 bounty • tscircuit

    Steps to solve:

    1. Start working: Comment /attempt #5 with your implementation plan
    2. Submit work: Create a pull request including /claim #5 in the PR body to claim the bounty
    3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

    ❗ Important guidelines:

    • Join our discord to get support from other contributors
    • Links: tscircuit docs · tscircuit playground
    • To claim a bounty for UI, you need to provide a short demo video of your changes in your pull request
    • Do not ask to be assigned unless you've contributed before

    Thank you for contributing to tscircuit/file-server!

    Attempt Started (UTC) Solution Actions
    🟢 @huangse199 Jun 01, 2026, 01:21:47 PM #126 Reward
    🟢 @gavin-openops Mar 01, 2026, 08:36:38 PM #26 Reward
    🟢 @chengyixu May 07, 2026, 04:53:47 PM #28 Reward
    🟢 @yanziwei Jun 08, 2026, 09:53:43 AM #127 Reward
    🟢 @arbazkhan971 May 11, 2026, 10:40:34 AM WIP
    🟢 @snkk2x-collab Jun 18, 2026, 03:23:02 PM #128 Reward
    🟢 @XananasX7 Jun 18, 2026, 04:32:01 PM #129 Reward
    🟢 @ArnavK-09 Mar 22, 2025, 06:27:11 PM #6 Reward
    🟢 @selenaalpha77-sketch Apr 26, 2026, 10:32:31 AM #27 Reward
  2. ArnavK-09 commented on Mar 22, 2025

    @ArnavK-09
    Contributor

    /attempt #5

    Algora profile Completed bounties Tech Active attempts Options
    @ArnavK-09 37 tscircuit bounties
    TypeScript, JavaScript,
    HTML & more
    Cancel attempt
  3. algora-pbc commented on Mar 22, 2025

    @algora-pbc

    💡 @ArnavK-09 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

  4. algora-pbc commented on Mar 22, 2025

    @algora-pbc

    🎉🎈 @ArnavK-09 has been awarded $10! 🎈🎊

  5. Iceshen87 commented on Mar 1, 2026

    @Iceshen87

    Hi tscircuit team! 👋

    I can create the download endpoint!

    My Plan:

    1. Review existing file server endpoints
    2. Implement /files/download endpoint
    3. Add proper authentication/authorization
    4. Test file downloads
    5. Add documentation

    Timeline: 1-2 days
    Bounty: $10 works for me!

    Why I am a good fit:

    • Experience with file server APIs
    • Familiar with Express/Node.js
    • Strong backend development skills

    Ready to start!

    • Ethan (Iceshen87)
  6. gavin-openops commented on Mar 1, 2026

    @gavin-openops

    /attempt #5

    Plan:

    1. Read contribution/style docs first.
    2. Implement both download endpoint patterns.
    3. Add/update tests for path + query variants.
    4. Submit focused PR with /claim Create download endpoint /files/download?... as well as /files/download/[[file_path]] #5.
  7. chengyixu commented on May 7, 2026

    @chengyixu

    /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.

  8. arbazkhan971 commented on May 11, 2026

    @arbazkhan971

    /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.

  9. arbazkhan971 commented on May 11, 2026

    @arbazkhan971

    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!

  10. huangse199 commented on Jun 1, 2026

    @huangse199

    C:/Program Files/Git/attempt #5

  11. yanziwei commented on Jun 8, 2026

    @yanziwei

    /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.

  12. snkk2x-collab commented on Jun 18, 2026

    @snkk2x-collab

    /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.

  13. XananasX7 commented on Jun 18, 2026

    @XananasX7

    /attempt #5

    Plan

    1. 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.
    2. Add comprehensive documentation to README covering both download forms.
    3. Update the API index page to list the download endpoints.
    4. 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.

    All 37 tests pass. Opening PR with /claim #5.

  14. 16 remaining items

  15. cjaime708 commented on Aug 18, 2026

    @cjaime708

    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.

  16. birdup000 commented on Aug 29, 2026

    @birdup000

    /attempt #5

  17. birdup000 commented on Aug 29, 2026

    @birdup000

    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.

  18. zukolega5-ux commented on Aug 29, 2026

    @zukolega5-ux

    /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.

  19. saurav-codes commented on Sep 8, 2026

    @saurav-codes

    /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:

    1. Document both download forms in the README.
    2. List the download endpoints on the root API index page.
    3. Add focused regression tests (dedicated test file) covering file_id download, nested path download, and the index page listing.
    4. Validate with full Bun tests, tsc typecheck, biome format check, build, and diff check.

    I will open a focused PR with /claim #5.

  20. stffinfcti commented on Sep 20, 2026

    @stffinfcti

    /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.

  21. expertedgevault-rgb commented on Sep 22, 2026

    @expertedgevault-rgb

    /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.

  22. infosbighouse-glitch commented on Sep 22, 2026

    @infosbighouse-glitch

    /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.

  23. Prom11111 commented on Sep 23, 2026

    @Prom11111

    /attempt

  24. alfendysoon-hub commented on Sep 27, 2026

    @alfendysoon-hub

    /attempt #5

  25. Ratanlavate commented on Oct 11, 2026

    @Ratanlavate

    /attempt #5

    Plan:

    1. Audit the /files/download (query) and /files/download/[[...file_path]] (path) routes.
    2. Harden Content-Disposition (sanitize quotes/linebreaks) + fix 0-byte binary handling.
    3. Add regression tests (spaces, empty binary, 404, header sanitization).
  26. added 2 commits that reference this issue on Oct 11, 2026
  27. Lion0871 commented on Oct 22, 2026

    @Lion0871

    /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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions