Skip to content

Commit

Permalink
Move SoS tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shepazon committed Nov 27, 2024
1 parent a28443e commit bb83fbc
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 bb83fbc

Please sign in to comment.