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

Skip to content

Conversation

@timwiechers
Copy link
Contributor

@timwiechers timwiechers commented Apr 5, 2022

Allow file extension "jpeg" in custom logo upload. Update file type identification.

Changes in this pull request

Without this PR it is not possible to upload a file with the extension "jpeg" as custom logo.

Also, the detection of the file type has been changed from evaluating the file name to Symfony's guessExtension method (https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#method_guessExtension).

Additional information

While creating this PR, I also noticed that the error handling on the client side is not optimal. A forbidden file is not uploaded without a hint and the error message appears only in the JavaScript console.

@brusch brusch added the Bug label Apr 8, 2022
@brusch brusch added this to the 10.3.5 milestone Apr 8, 2022
@brusch brusch self-assigned this Apr 8, 2022
@brusch brusch merged commit d3d5bba into pimcore:10.3 Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants