Skip to content

Commit 054c03e

Browse files
authored
Adjust snippet for Swift multipart upload sample (#7115)
1 parent 5bd7c5e commit 054c03e

File tree

1 file changed

+1
-1
lines changed
  • swift/example_code/s3/presigned-urls/Sources/presigned-upload

1 file changed

+1
-1
lines changed

swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ struct ExampleCommand: ParsableCommand {
171171
} catch {
172172
throw TransferError.signingError
173173
}
174-
// snippet-end:[swift.s3.presigned.presign-PutObject-advanced]
175174

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

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

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

184184
print("Uploaded (presigned) \(sourcePath) to \(bucket)/\(fileName).")
185185
}

0 commit comments

Comments
 (0)