title: How to upload files to AWS-S3 with Angular $http PUT
body: <p>In my Angular application I try to upload a file to AWS-S3 with <code>$http.put(url, file)</code>.</p>
  
  <p>However it's not working, I get back a HTTP-403 Forbidden telling me that the signature s3 calculated differs from the one I provided BUT if I make the same request with curl like <code>curl -X PUT -T file url</code> then everything is ok the file gets uploaded. So either the way $http.put is working is bad (for this task) or curl has some magic. Can anyone elaborate?</p>