Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: use correct Content-Type for template archive #15410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Nov 6, 2024

Fixes: #14124

It is assumed that only TAR archive can be uploaded via the site, but as long as the backend supports ZIP files (transformed to .tar on-the-fly) users should be able to submit both formats.

@mtojek mtojek self-assigned this Nov 6, 2024
@mtojek mtojek marked this pull request as ready for review November 6, 2024 14:59
@mtojek mtojek requested a review from BrunoQuaresma November 6, 2024 14:59
@mtojek mtojek merged commit 1736309 into main Nov 6, 2024
29 of 31 checks passed
@mtojek mtojek deleted the 14124-fix-zip branch November 6, 2024 17:38
ethanndickson added a commit that referenced this pull request Nov 8, 2024
Fixes a bug where a file produced by `generateVersionFiles` (as used
when uploading a web UI edited template) produced a file where the
`type` field was unset.
This meant the change in #15410 used the unset type value as the content
header when uploading, causing it to always fail.
stirby pushed a commit that referenced this pull request Dec 11, 2024
stirby pushed a commit that referenced this pull request Dec 11, 2024
Fixes a bug where a file produced by `generateVersionFiles` (as used
when uploading a web UI edited template) produced a file where the
`type` field was unset.
This meant the change in #15410 used the unset type value as the content
header when uploading, causing it to always fail.

(cherry picked from commit d2e4969)
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.

Uploading template zip file in the UI does not work
2 participants