I am writing API for my mobile app. I have a problem in PUT and DELETE. In post method , I can use $_FILES for uploading file. However, it return NULL value in PUT and DELETE method.
I just use simple code for testing
<?php
echo "FILE: ";
var_dump($_FILES["file"]["name"]);
?>
I am using POSTMAN chrome extension for testing the PUT and DELETE method.
Are You using Your form with
enctype="multipart/form-data"attribute?There is almost the same problem thread – check it: How to receive a file via HTTP PUT with PHP