I'm also looking for this functionality, thanks for providing this.
Unfortunately it didn't quite work for me. It behaves the same as Put() does when I pass a nil payload meaning that it simply uploads a new/overwritten empty file with the new ACL. If you edit the s3 package debug messaging to show the outgoing request, you can see the PUT is:
I'm also looking for this functionality, thanks for providing this.
Unfortunately it didn't quite work for me. It behaves the same as Put() does when I pass a nil payload meaning that it simply uploads a new/overwritten empty file with the new ACL. If you edit the s3 package debug messaging to show the outgoing request, you can see the PUT is:
PUT /bucketName/ your.file HTTP/1.1
when it looks like it should be this:
PUT /bucketName/ your.file? acl HTTP/1.1
at least according to this document: http:// docs.aws. amazon. com/AmazonS3/ latest/ API/RESTObjectP UTacl.html
(check the very last example from that docs).
When I append "?acl" to my path, it ends up getting percent encoded but I can't seem to find the spot where this happens.