The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

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

Ronak's Avatar

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?

FYI, we're using Postman - Chrome extension to test our RESTful API.

  1. 1 Posted by smstoharpreet on 19 Dec, 2015 04:01 PM

    smstoharpreet's Avatar

    did you ever find a solution?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac