EasyCorp / EasyAdminBundle

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
MIT License
3.99k stars 1.01k forks source link

Replace unsafe guessClientExtension() method with guessExtension() #6254

Open alshenetsky opened 1 month ago

alshenetsky commented 1 month ago

guessClientExtension() method can not be trusted because it depends on request data. In addition, it will be easier to write tests because the extension of the uploaded file no longer depends on the MIME type passed in the request.