Skip to content

Commit

Permalink
fix s3 multi
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaxim committed Aug 15, 2024
1 parent 6607d62 commit d2e862c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/chat/s3/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (b *Bucket) InitMulti(ctx context.Context, key string, contType string, per
"Content-Length": {"0"},
"x-amz-acl": {string(perm)},
}
b.addTokenHeader(headers)
params := map[string][]string{
"uploads": {""},
}
Expand Down Expand Up @@ -164,6 +165,7 @@ func (m *Multi) putPart(ctx context.Context, n int, r io.ReadSeeker, partSize in
"Content-Length": {strconv.FormatInt(partSize, 10)},
"Content-MD5": {md5b64},
}
b.addTokenHeader(headers)
params := map[string][]string{
"uploadId": {m.UploadID},
"partNumber": {strconv.FormatInt(int64(n), 10)},
Expand Down

0 comments on commit d2e862c

Please sign in to comment.