I'm using the latest version of aws/amplify 3.3.7
This is the code
const s3Upload = async (file, id) => {
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 zip file) it works fine, but when I try to upload bigger files ie 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