Skip to content

[stable33] fix: Use POST instead of GET for multi-file downloads - #66287

Open
backportbot[bot] wants to merge 3 commits into
stable33from
backport/56543/stable33
Open

backportbot[bot] wants to merge 3 commits into
stable33from
backport/56543/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Backport of #56543

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

nfebe and others added 2 commits November 4, 2026 13:13
When downloading multiple files as a ZIP archive, filenames were
appended to the URL as query parameters, causing "414 Request-URI
Too Long" errors with many files.

Backend now supports POST requests with files in request body.
Frontend sends files via FormData in POST body instead of URL params.

Fixes #7935

Signed-off-by: nfebe <fenn25.fn@gmail.com>
Downloading the archive through axios as a blob buffered the whole
archive in memory and then failed, as HEAD requests on blob URLs are
not allowed. Submit a hidden form instead so the browser streams the
download natively.

Also reject non-string `files` parameters instead of failing with a
TypeError.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@backportbot
backportbot Bot requested a review from nfebe November 4, 2026 13:13
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Nov 4, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.11 milestone Nov 4, 2026
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan force-pushed the backport/56543/stable33 branch from 3e46288 to d679b3f Compare November 4, 2026 13:16
@CarlSchwan
CarlSchwan marked this pull request as ready for review November 4, 2026 13:16
@CarlSchwan
CarlSchwan requested review from a team and skjnldsv as code owners November 4, 2026 13:16
@CarlSchwan
CarlSchwan requested review from icewind1991, kristian-zendato, provokateurin and susnux and removed request for a team November 4, 2026 13:16
@susnux

susnux commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Should go to master first, and then needs to be backported to 35 and 34 as well otherwise you unpatch by updating

@susnux susnux assigned CarlSchwan and unassigned nfebe Nov 4, 2026
@susnux
susnux requested review from CarlSchwan and removed request for nfebe November 4, 2026 13:24
This was referenced Nov 4, 2026

This branch has not been deployed

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

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants