You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both API's return an incomplete URL. It does not contain all mandatory query parameters to successfully perform a multipart upload.
Expected Behavior
There should be an API in the SDK that returns a presigned URL with all mandatory parameters necessary to successfully perform a multipart upload on that URL.
Current Behavior
2024-10-30T08:11:18+0100 info URLSessionHTTPClient : [Logging] start URLRequest(https://bucketname.s3.eu-central-1.amazonaws.com/foo.txt?uploads) called
2024-10-30T08:11:18+0100 info URLSessionHTTPClient : [Logging] body is Data
2024-10-30T08:11:18+0100 info URLSessionHTTPClient : [Logging] Either TLSOptions not set or missing values! Using default trust store.
2024-10-30T08:11:18+0100 info S3Client : [Logging] No checksum provided! Skipping flexible checksums workflow...
"Example 1 URL: Optional(https://bucketname.s3.eu-central-1.amazonaws.com/foo.txt?x-id=UploadPart&partNumber=1&uploadId=3apTN5sv8ATm2EM7Q6je1xahbvz1MbdJTYkzg4r.8.qS1gvtAjkmwi2RrtMbvCRYWU40kVyXgq1vMPSeQoUnqRrKvqNRXrJHe7sxibiSip1bG9DukQrOPa32O_Si2n3C)"
2024-10-30T08:11:18+0100 info S3Client : [Logging] No checksum provided! Skipping flexible checksums workflow...
"Example 2 URL: Optional(https://bucketname.s3.eu-central-1.amazonaws.com/foo.txt?x-id=UploadPart&partNumber=1&uploadId=3apTN5sv8ATm2EM7Q6je1xahbvz1MbdJTYkzg4r.8.qS1gvtAjkmwi2RrtMbvCRYWU40kVyXgq1vMPSeQoUnqRrKvqNRXrJHe7sxibiSip1bG9DukQrOPa32O_Si2n3C)"
Program ended with exit code: 0
Sorry for opening a duplicate (#723). Is there any technical reason this cannot be implemented? I'd be happy to open a PR, if somebody gives me a starting point, please :).
Describe the bug
I've tried to use two different API's to presign some
UploadPart
:UploadPartInput.presign(config:expiration:)
S3Client.presignedRequestForUploadPart(input:expiration:)
Both API's return an incomplete URL. It does not contain all mandatory query parameters to successfully perform a multipart upload.
Expected Behavior
There should be an API in the SDK that returns a presigned URL with all mandatory parameters necessary to successfully perform a multipart upload on that URL.
Current Behavior
Reproduction Steps
Possible Solution
Solution 1
UploadPartInput.presign(config:expiration:)
S3Client.presignedRequestForUploadPart(input:expiration:)
Both API's mentioned above return a URL that contains all mandatory query parameters to successfully upload a file.
Solution 2 (preferred)
Implement new API:
UploadPartInput.presignURL(config:expiration:)
This returns a URL that contains all mandatory query parameters to successfully upload a file.
Analogue to:
GetObjectInput.presignURL(config:expiration:)
PutObjectInput.presignURL(config:expiration:)
Additional Information/Context
When I try the
presignURL
API ofPutObjectInput
orGetObjectInput
, I get a valid URL.Output:
AWS SWIFT SDK version used
1.0.29
Compiler and Version used
Xcode 15.4 + included Swift Version/Tools
Operating System and version
macOS 14.7
The text was updated successfully, but these errors were encountered: