title: AWS S3: should I use POST or PUT requests to upload a file?
body: <p>I would like to know the pros and cons of using POST or PUT request to upload a file to Amazon Web Services S3.</p>
  
  <p>I've already read some SO question like <a href="https://stackoverflow.com/q/630453/8035683">this one</a>, but I would like to know the specific differences when using the AWS API.</p>
  
  <p>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.</p>
  
  <p>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.</p>