feat(storage): add support for upload presigned url - #4146
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4146 +/- ##
==========================================
+ Coverage 66.53% 66.79% +0.25%
==========================================
Files 1150 1150
Lines 43607 43617 +10
==========================================
+ Hits 29013 29133 +120
+ Misses 14594 14484 -110
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
harsh62
temporarily deployed
to
IntegrationTest
February 19, 2026 17:28 — with
GitHub Actions
Inactive
…iew doc Replace plugin-level HTTPMethod enum with category-level StorageAccessMethod enum per the approved mobile API review doc. Remove contentType support (not in approved scope, tracked as future work). Delete .kiro spec files.
harsh62
marked this pull request as ready for review
April 9, 2026 14:45
harsh62
force-pushed
the
storage-get-url-change
branch
from
April 9, 2026 15:49
05c6af4 to
b20682e
Compare
thisisabhash
approved these changes
Apr 9, 2026
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
harsh62
had a problem deploying
to
IntegrationTest
April 9, 2026 19:40 — with
GitHub Actions
Failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extends the existing
getUrlStorage API to support pre-signed URL generation for PUT (upload) operations, enabling developers to use third-party tools and HTTP clients to upload files to S3 via Amplify.What changed
StorageAccessMethodenum at the category level (Amplify/Categories/Storage/StorageAccessMethod.swift) with.getand.putcases — follows the cross-platform naming convention from the approved mobile API review doc (Flutter, Android, Swift all useStorageAccessMethod)AWSStorageGetURLOptionsto accept amethod: StorageAccessMethodparameter (defaults to.get)AWSS3StorageGetURLTaskto selectAWSS3SigningOperation.putObjector.getObjectbased on the method parameterBehavior
method: .get(default)method: .putvalidateObjectExistencemethodis.put(object may not exist yet)useAccelerateEndpoint.getand.putexpiresIn.getand.putUsage
Breaking Changes
None. The
methodparameter is optional and defaults to.get. Existing code continues to work unchanged.Test Coverage
General Checklist
Given When Theninline code documentation and are named accordinglytestThing_condition_expectation()By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.