Skip to content

feat: file download support in browser file explorer#61

Open
aakhter wants to merge 4 commits intoArk0N:masterfrom
aakhter:feat/file-download
Open

feat: file download support in browser file explorer#61
aakhter wants to merge 4 commits intoArk0N:masterfrom
aakhter:feat/file-download

Conversation

@aakhter
Copy link
Copy Markdown

@aakhter aakhter commented Apr 5, 2026

Summary

  • Add ?download=true query param to existing file-raw endpoint for Content-Disposition attachment headers
  • Add dedicated GET /api/download endpoint for filesystem file downloads
  • Add download button to the file browser UI
  • Fix 0-byte download bug by bypassing Fastify compression via reply.raw for file streams

Context

When browsing files in the Codeman web UI, there was no way to download them to your local machine. This adds a download button to each file in the browser and the backend plumbing to serve files with proper Content-Disposition headers.

Test plan

  • Open file browser -- verify download button appears on files
  • Click download -- verify file downloads with correct name and content
  • Download a large file -- verify no 0-byte truncation
  • Verify existing file-raw endpoint still works without ?download=true

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant