-
Notifications
You must be signed in to change notification settings - Fork 148
uploading with public-read permissions #44
Comments
Same problem here. |
I'm having this problem as well. Using the above line to set the x-amz-acl header field actually does seem to work when I use the putObjectWithFile method, but if I use the postObjectWithFile method, it doesn't seem to set the permissions properly. I'd be ok with that, but I'm having a problem when using PUT... the .mov file I'm uploading comes back with the following header in the file itself (making it unplayable) --Boundary+A10C94F97193555F square_movie.mov This could be my fault, but probably belongs in an issue on its own. |
Updating this works for me: |
ah thanks. that did indeed solve the headers in the uploaded file when using a PUT method. it also seems to impact the POST method -- now after the progress reaches 100%, it fails with this error: Request failed: precondition failed (412) I'm not really sure why you'd need to use a POST over a PUT for simply uploading files to S3 though... |
Fixed by cc21e90. |
Thanks a ton! Came in quite handy. |
I'm trying to upload a file with public-read permissions but have been unsuccessful. Here is the call I'm trying to do to add the acl to the header:
The text was updated successfully, but these errors were encountered: