Skip to content

Fix guessing mime type in AmazonMetadataBuilder #1866

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 18, 2020

Conversation

jorrit
Copy link
Contributor

@jorrit jorrit commented Nov 18, 2020

Subject

AmazonMetadataBuilder->getContentType() should not try to access the $filename parameter as a local file because it has been uploaded already to S3.

I am targeting this branch, because it's fixing a regression.

Closes #1854.

Changelog

### Fixed
- Guessing the content type of a file stored on Amazon S3.

@jorrit jorrit mentioned this pull request Nov 18, 2020
core23
core23 previously approved these changes Nov 18, 2020
@jorrit jorrit force-pushed the amazon-mimetype-bugfix branch from 3938f56 to 5795952 Compare November 18, 2020 12:51
VincentLanglet
VincentLanglet previously approved these changes Nov 18, 2020
core23
core23 previously approved these changes Nov 18, 2020
@jorrit jorrit dismissed stale reviews from core23 and VincentLanglet via af98924 November 18, 2020 13:24
@jorrit jorrit force-pushed the amazon-mimetype-bugfix branch from 5795952 to af98924 Compare November 18, 2020 13:24
Copy link
Contributor

@michealmouner michealmouner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@VincentLanglet VincentLanglet merged commit a8a1a38 into sonata-project:3.x Nov 18, 2020
@VincentLanglet
Copy link
Member

Thanks ! @jorrit

@jorrit jorrit deleted the amazon-mimetype-bugfix branch November 19, 2020 19:16
@SonataCI
Copy link
Collaborator

Ok @franmomu,

I requested a new release for SonataMediaBundle via Slack in #releases channel 👍

If you want to get notified about new releases, make sure to follow SonataNews on Twitter!

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.

6 participants