We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd7c5e commit 054c03eCopy full SHA for 054c03e
swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift
@@ -171,7 +171,6 @@ struct ExampleCommand: ParsableCommand {
171
} catch {
172
throw TransferError.signingError
173
}
174
- // snippet-end:[swift.s3.presigned.presign-PutObject-advanced]
175
176
// Send the HTTP request and upload the file to Amazon S3.
177
@@ -180,6 +179,7 @@ struct ExampleCommand: ParsableCommand {
180
179
request.body = .bytes(fileData)
181
182
_ = try await HTTPClient.shared.execute(request, timeout: .seconds(5*60))
+ // snippet-end:[swift.s3.presigned.presign-PutObject-advanced]
183
184
print("Uploaded (presigned) \(sourcePath) to \(bucket)/\(fileName).")
185
0 commit comments