Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (Storage/FileUploader): FileUploader does not upload processed file contents in certain scenarios #6050

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

choyky
Copy link

@choyky choyky commented Nov 11, 2024

Description of changes

This change fix an issue in which FileUploader does not upload the processed/modified file contents as advertised in documentation.

In current implementation, the original input file is returned as-is when hasKeyInput is false. However, the processed file contents should be returned instead regardless of the condition of hasKeyInput.

This code change fixes that and returns processed/modified file contents instead of the original.

Issue #, if available

#6049

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

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

@choyky choyky requested a review from a team as a code owner November 11, 2024 04:51
Copy link

changeset-bot bot commented Nov 11, 2024

🦋 Changeset detected

Latest commit: 4a65d13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-amplify/ui-react-storage Patch

Not sure what this means? Click here to learn what changesets are.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants