Skip to content

Commit

Permalink
Adjust snippet for Swift multipart upload sample (awsdocs#7115)
Browse files Browse the repository at this point in the history
  • Loading branch information
shepazon authored Nov 29, 2024
1 parent 5bd7c5e commit 054c03e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ struct ExampleCommand: ParsableCommand {
} catch {
throw TransferError.signingError
}
// snippet-end:[swift.s3.presigned.presign-PutObject-advanced]

// Send the HTTP request and upload the file to Amazon S3.

Expand All @@ -180,6 +179,7 @@ struct ExampleCommand: ParsableCommand {
request.body = .bytes(fileData)

_ = try await HTTPClient.shared.execute(request, timeout: .seconds(5*60))
// snippet-end:[swift.s3.presigned.presign-PutObject-advanced]

print("Uploaded (presigned) \(sourcePath) to \(bucket)/\(fileName).")
}
Expand Down

0 comments on commit 054c03e

Please sign in to comment.