aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
913 stars 295 forks source link

feat(react-storage): skip adding too big files to upload queue #6104

Closed AllanZhengYP closed 4 days ago

AllanZhengYP commented 6 days ago

Description of changes

When file size is greater than 160 GB, prevent the file to be added to the upload view and render a warning message. Users can ignore the message and proceed the upload, the message will be automatically dismissed when the upload starts.

Screenshot 2024-11-17 at 6 38 24 PM

(Reduced the size limit to render the warning message)

Screenshot 2024-11-15 at 4 45 25 PM

Description of how you validated changes

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

changeset-bot[bot] commented 6 days ago

⚠️ No Changeset found

Latest commit: 3dadc24d14724c97efecf486aaaf83e01ca1e754

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR