I'm using PUT method to upload files using dropzone.js on frontend. However when I want to work with files both Symfony's Request
object and $_FILES
array are empty.
I have checked everything in this huge checklist and it did not help to me since it does not says anything about uploading via PUT method.
PHP does not convert files uploaded via
PUT
method into$_FILES
hence Symfony`sRequest
object is empty too.You need to handle incoming file using following code.
Or using
$request->getContent()
in symfony.