Category : image-upload

Uploading a file from a ReactJS/Javascript front end App to a Symfony 4 Backend, I try to get its file extension. With the file received, I instanciate an UploadedFile object, so from which I can use the methods : $newFile->getClientOriginalExtension(); $newFile->getClientMimeType(); $newFile->guessClientExtension(); $newFile->guessExtension(); I would expect those getters to return consistent results but it is ..

Read more