sonata-project / SonataMediaBundle

Symfony SonataMediaBundle
https://docs.sonata-project.org/projects/SonataMediaBundle
MIT License
449 stars 496 forks source link

The image extension "JPG" is not one of the allowed #2297

Closed treehousedevelopers closed 2 years ago

treehousedevelopers commented 2 years ago

Environment

Sonata packages

``` sonata-project/media-bundle 3.38.1 ```

Subject

The image extension "JPG" is not one of the allowed ("jpg", "png", "jpeg", "gif").

Steps to reproduce

Upload file with JPG extension in name.

Expected results

Restore strtolower() before allowed extensions check. It has been removed in last commit

It has been removed also in version 4.x and 5.x.

Actual results

The image extension "JPG" is not one of the allowed.

VincentLanglet commented 2 years ago

Can you provide a PR with the fix @treehousedevelopers ?

jerome-fix commented 2 years ago

@VincentLanglet

Could you create a new tag with this correction?

Thanks

Jérôme.

VincentLanglet commented 2 years ago

on it https://github.com/sonata-project/SonataMediaBundle/pull/2302