Skip to content

downloadFile: large files from storage through the platform's redirect - #83

Open
agviegas wants to merge 2 commits into
mainfrom
feat/download-via-storage
Open

agviegas wants to merge 2 commits into
mainfrom
feat/download-via-storage

Conversation

@agviegas

Copy link
Copy Markdown
Contributor

Needs ThatOpen/platform_backend-api#776 (opt-in ?redirect=storage on /item/:id/download). Against an older platform, the parameter is ignored and nothing changes.

downloadFile asks with redirect=storage. If the redirect fails (an error answer after redirecting, or a network refusal), it asks again through the API.

Tests: src/core/client.download.test.ts, 4 cases. The 8 failing cases in client.test.ts fail on main too, without this change.

🤖 Generated with Claude Code

agviegas and others added 2 commits November 27, 2026 14:52
…ct, the API as before when that does not end well

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agviegas
agviegas force-pushed the feat/download-via-storage branch from dce0568 to 8fd90e2 Compare November 27, 2026 13:53
@agviegas
agviegas marked this pull request as ready for review November 27, 2026 14:05
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