From 2dc3e3824c0d61fa4feb555c529c0e8bf3050d3f Mon Sep 17 00:00:00 2001 From: Eric Shepherd Date: Thu, 21 Nov 2024 19:16:20 +0000 Subject: [PATCH] Fix metadata problems --- .../presigned-urls/Sources/presigned-upload/entry.swift | 8 -------- 1 file changed, 8 deletions(-) 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 07fed875aeb..08190dfcd32 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 @@ -63,14 +63,6 @@ struct ExampleCommand: ParsableCommand { print("Uploading file from \(fileURL.path) to \(bucket)/\(fileName).") - // Presign the `PutObject` request with a 10-minute expiration. The - // presigned request has a custom configuration that asks for up to - // six attempts to put the file. - // - // The presigned `URLRequest` can then be sent using the URL Loading System - // (https://developer.apple.com/documentation/foundation/url_loading_system/uploading_data_to_a_website). - - // snippet-start:[swift.s3.presigned.presign-PutObject-advanced] let fileData = try Data(contentsOf: fileURL) let dataStream = ByteStream.data(fileData)