PHP upload file using PUT instead of POST
Posted
by Marco Demaio
on Stack Overflow
See other posts from Stack Overflow
or by Marco Demaio
Published on 2010-05-19T09:09:52Z
Indexed on
2010/05/19
9:10 UTC
Read the original article
Hit count: 289
I read something about this on PHP docs, but it's not celar to me:
Do the most widely used browsers (IE, FF, Chrome, Safari, Opera, ...) support this PUT method to uplaod files?
What HTML should I write to make the browser call the server via PUT request. I mean do I need to write a FORM with an INPUT file field and just replace the attribute method="POST" with the method="PUT"?
On the PHP docs (link above) they say a PUT request is much simplier than a POST request when uploading file, along with this advantage, what other advantages/disadvanatges do the PUT has comapred to teh POST?
Thanks!
© Stack Overflow or respective owner