I read something about this on PHP docs, but it’s not clear to me:
-
Do the most widely used browsers (IE, FF, Chrome, Safari, Opera, …) support this
PUTmethod to upload files? -
What HTML should I write to make the browser call the server via a
PUTrequest? I mean do I need to write aFORMwith anINPUTfile field and just replace the attributemethod="POST"withmethod="PUT"? -
On the PHP docs (link above) they say a
PUTrequest is much simpler than aPOSTrequest when uploading file, along with this advantage, what other advantages/disadvanatges do thePUThas got compared to thePOST?
I think the method is supported by most major browsers, but you can’t account for every browser and other client that is out there. From a cursory look at the user contributed notes, this sometimes even needs server-side configuration to work.
Also, handling any additional form values you may want to send along with your file becomes more difficult.
I wouldn’t use it. Way too much possible hassle for little actual gain.