Ask Your Question

RobGThai's profile - activity

2016-12-29 04:23:19 -0500 commented question Is it possible to set ACL to container when uploading to Swift?

Also, if I upload to a non-existing container, said container get created automatically but without proper ACL.

It might be python specific tho but I'm sure it does because the upload result always get create_container action back when I upload a file.

2016-12-29 04:21:27 -0500 commented question Is it possible to set ACL to container when uploading to Swift?

First of all, it is possible to set ACL when creating container.

self.service = SwiftService(options=auth_options)
self.acl = {'read_acl': '.r:*'}
self.service.post(container_name, None, self.acl)

2016-12-29 02:16:22 -0500 asked a question Is it possible to set ACL to container when uploading to Swift?

I want to use Python-Swift to upload a file to a non-exists container. Is it possible to set ACL to the automatically created container? At the moment I have to call create container separately in order to do it.

I also find it rather wasteful that SwiftUploadObject try to create already existing container on every upload request.