There is a bug in php which has been described here:
Data that is posted to PHP via the PUT method is not parsed at all and is not available to PHP. This is particularly problematic for data sent encoded as 'multipart/form-data'.
Basically, a request sent (with files and/or non-file data) via PUT should be parsed using the same functions used for requests sent via POST.
Suppose you are calling a REST API which accepts two parameters:
This API must be called via
PUT method to update a resource.
multipart/form-data and send the
On the server side though, because of the above PHP bug, trying to access the uploaded file or accessing the title field will fail. In other words, all of the following will either return false or null:
By simply installing this plugin, the
form-data become available in your
PATCH requests exactly as they
Simply install the plugin. Nothing more to do!
This plugin has not been reviewed yet.
!!! Renamed namespace from MeysamMahfouzi to Meysam
Jul 14, 2019
First version of plugin
Jun 07, 2018