Error uploading on S3 through amplify storage reactjs
See original GitHub issueI’m using the latest version of aws-amplify 3.3.7 on reactjs
This is the code
const s3Upload = async (file) => {
const filename = file.name.replace(/\s/g, '')
await Storage.vault.put(filename, file, {
contentType: file.type
})
}
When I try to upload small files (1 Mb file) it works fine, but when I try to upload bigger files i.e. 6 Mb zip file, I’m getting the error:
AWSS3ProviderManagedUpload - error happened while finishing the upload. Cancelling the multipart upload Error: Request failed with status code 40
Anyone faced this problem
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Error uploading on S3 through amplify storage reactjs
I've been having the same issue where after around 5MB, Amplify uses multipart upload and it fails with the same error.
Read more >Storage - S3 Image - React - AWS Amplify Docs
Amplify S3 Image Component is used to upload and render an image from S3 bucket using an ... Description, Function executed when error...
Read more >Upload Files To AWS S3 From React App —Using AWS Amplify
In this post though, we are going to look at how to use AWS Amplify to let users upload files to S3 buckets...
Read more >How to Monitor Upload and Download Progress for Amplify ...
Tagged with amplify, javascript, s3, react. ... Amplify Storage has a callback that keeps you updated on the upload and download progress of ......
Read more >Storage
AWS Amplify Storage module provides a simple mechanism for managing user content for ... The Storage category comes with built-in support for Amazon...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have implement this solution on my S3 bucket https://stackoverflow.com/questions/64681196/error-uploading-on-s3-through-amplify-storage-reactjs, and is working, not sure how secure is this
@iartemiev this looks similar to https://github.com/aws-amplify/amplify-js/issues/5873