-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Set payload filename on upload even if primaryKey exists. #19771
Set payload filename on upload even if primaryKey exists. #19771
Conversation
This way on image replace we update the file extension on disk and download filename.
🦋 Changeset detectedLatest commit: 693ac0a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me! Both the extension in (Disk) and filename in (Download) change now.
…9771) * Set payload filename on upload even if primaryKey exists. This way on image replace we update the file extension on disk and download filename. * Add 0x2aff to contributors.yml * Put 0x2aff contributor into quotes. * add changeset * Update changeset to reflect also extension --------- Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
Should fix #19657
The multipart handler on file upload only sets the payload filename if we upload new file.
If we always add the filename to the payload we always update the file extension on disk and download-filename.