Skip to content

fix(storage-azure): fix azure storage mime type handling for streaming uploads#15949

Merged
paulpopus merged 1 commit intopayloadcms:mainfrom
thearc-hq:fix-azure-storage-mime-type-handling
Apr 2, 2026
Merged

fix(storage-azure): fix azure storage mime type handling for streaming uploads#15949
paulpopus merged 1 commit intopayloadcms:mainfrom
thearc-hq:fix-azure-storage-mime-type-handling

Conversation

@swenzel-arc
Copy link
Copy Markdown
Contributor

The fix itself is quite simple, the code was just missing the content type header when uploading via streams.

I think the actual code review is more about the testing. I'm not sure if I did everything right.
I've duplicated the current azure storage tests and made sure to run them with useTempFiles: true which causes all uploads to be streaming uploads. I've also added the test for the mime type handling to the original test suite just to be sure that it is also tested for non-streaming uploads.

closes #15948

@paulpopus paulpopus merged commit cd7fcea into payloadcms:main Apr 2, 2026
155 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

🚀 This is included in version v3.82.0

milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
…g uploads (payloadcms#15949)

The fix itself is quite simple, the code was just missing the content
type header when uploading via streams.

I think the actual code review is more about the testing. I'm not sure
if I did everything right.
I've duplicated the current azure storage tests and made sure to run
them with `useTempFiles: true` which causes all uploads to be streaming
uploads. I've also added the test for the mime type handling to the
original test suite just to be sure that it is also tested for
non-streaming uploads.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mime type not passed to azure storage when tempfiles are used

3 participants