Fix:s3 Presign Post with object acl (#3246)
* Fix:s3 Presign Post with object acl * Added import in tests Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
3fb7cf75d4
commit
d2e16ecc2e
2 changed files with 37 additions and 0 deletions
|
|
@ -860,6 +860,10 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
|
|||
|
||||
new_key = self.backend.set_object(bucket_name, key, f)
|
||||
|
||||
if form.get("acl"):
|
||||
acl = get_canned_acl(form.get("acl"))
|
||||
new_key.set_acl(acl)
|
||||
|
||||
# Metadata
|
||||
metadata = metadata_from_headers(form)
|
||||
new_key.set_metadata(metadata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue