Is it possible to make PUT request with multipart/form-data?

Ronak

28 Oct, 2014 11:10 AM

Thanks for great framework.

In HTTP there are two ways to POST data:
application/x-www-form-urlencoded and
multipart/form-data.

We've started using your framework extensively in our
applications and we're creating RESTful APIs with it.
We have come to one critical requirement to update user profile
picture. For that matter, according to make it RESTful API, we need
to use PUT method with multipart/form-data which is
not working with latest version of Slim Framework.

Is it really possible to upload files with PUT method in PHP? Or
are we going in wrong direction?