Skip to content
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

fix(plugin-cloud-storage): file sizes use correct mime type #11633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

6TELOIV
Copy link
Contributor

@6TELOIV 6TELOIV commented Mar 11, 2025

What?

Fixes #7575

Why?

The bug was caused by using the upload file mimeType instead of the resized file mime types.

Often, the resized file will have a different mime type (ex: converting all files to jpg) so this is incorrect.

How?

Use the resizedFile mime type with the upload file mimeType as a backup

I'm unsure when/why the resized files wouldn't have a mime type, but the base file mime type is a sensible backup option.

the bug was caused by usign the main file mimeType instead of the resized file mime types.

often, the resized file will have a different mime type (ex: converting all files to jpg)
@6TELOIV
Copy link
Contributor Author

6TELOIV commented Mar 11, 2025

I really don't have any idea why that test failed... doesn't seem to have anything to do with uploads AFAIK.

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.

S3 Adapter is not setting mime type correctly
1 participant