Any idea why PATCH and PUT did not accept multipart / form-data file uploads?
When I ran var_dump($_FILES) , it outputs array(0) { } . Any idea why this is happening? If I LOST the file, it works fine.
Below is an example of the query that I am running.
Thanks in advance!
PUT /test.php HTTP/1.1 Content-Type: multipart/form-data; boundary=__X_PAW_BOUNDARY__ Host: [redacted] Connection: close User-Agent: Paw/2.1.1 (Macintosh; OS X/10.10.2) GCDHTTPRequest Content-Length: 17961 --__X_PAW_BOUNDARY__ Content-Disposition: form-data; name="avatar"; filename="default.png" Content-Type: image/png PNG [IMAGE DATA] --__X_PAW_BOUNDARY__--
source share