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
PHP does not convert files uploaded via PUT
method into $_FILES
hence Symfony`s Request
object is empty too.
You need to handle incoming file using following code.
/* PUT data comes in on the stdin stream */
$putdata = fopen("php://input", "r");
Or using $request->getContent()
in symfony.
PHP also supports PUT-method file uploads as used by Netscape Composer and W3C's Amaya clients. See the PUT Method Support for more details. http://php.net/manual/en/features.file-upload.post-method.php