AWS S3: should I use POST or PUT requests to upload a file?

Viewed 16202

I would like to know the pros and cons of using POST or PUT request to upload a file to Amazon Web Services S3.

I've already read some SO question like this one, but I would like to know the specific differences when using the AWS API.

I managed to use both, but hardly see the difference. I am using both PUT and POST via AJAX and the XMLHTTPRequest object, to upload directly from the browser with a node.js backend generating the signature.

The difference I noticed is that I can't restrict content-type and length server-side with PUT when I generate the signature, but this could be because I am just learning it now.

1 Answers
Related