From bb83fbc852a695635fa2dfc34b66fe2696c7f081 Mon Sep 17 00:00:00 2001 From: Eric Shepherd Date: Wed, 27 Nov 2024 15:59:18 +0000 Subject: [PATCH] Move SoS tag --- .../s3/presigned-urls/Sources/presigned-upload/entry.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift b/swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift index 824464398e1..2ed004f135d 100644 --- a/swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift +++ b/swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift @@ -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. @@ -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).") }