EasyAdminBundle
EasyAdminBundle copied to clipboard
Replace unsafe guessClientExtension() method with guessExtension()
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.