-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable canned ACL for S3 #9042
Enable canned ACL for S3 #9042
Changes from all commits
867e918
ce37f27
1cdd42b
cfe26f0
b7dd4b6
15645c1
d88386a
48a393a
a634539
fac5ff6
db6c6a9
63d05ec
85cf161
747c716
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,9 @@ func (h *Handler) CreateUpload(ctx context.Context, sessionID session.ID) (*even | |
input.SSEKMSKeyId = aws.String(h.Config.SSEKMSKey) | ||
} | ||
} | ||
if h.Config.ACL != "" { | ||
input.ACL = aws.String(h.Config.ACL) | ||
} | ||
Comment on lines
+55
to
+57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you check if this is needed? I think you're setting it on the AWS session, so it shouldn't be needed right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it might be needed, but please verify. https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed. The session doesn't handle the ACL. |
||
|
||
resp, err := h.client.CreateMultipartUploadWithContext(ctx, input) | ||
if err != nil { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use NoError instead of Nil.