With the file received, I instantiate an
UploadedFile object, whichhas the following methods available:
$uploadedFile->getClientOriginalExtension(); $uploadedFile->getClientMimeType(); $uploadedFile->guessClientExtension(); $uploadedFile->guessExtension();
I would expect those getters to return consistent results but it is not really what happens.
Return results for an uploaded file with named
image-ile.jpg are :
Source: Symfony4 Questions