I’m trying to upload a .jar file to Amazon S3 in the AWS Console.
The error msg said:
Failed to execute ‘readAsArrayBuffer’ on ‘FileReaderSync’: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
It should get uploaded in S3 bucket.
2
Answers
This error message usually occurs when the .jar file you’re trying to upload doesn’t have the necessary permissions or is locked by another process.
Try the following steps to resolve the issue:
I have tried uploading jar file to s3 and it is working as expected.To debug more on the error try to upload file with aws s3 cli command.If you jar is bigger in size you can also use multipart file upload.
AWS s3 multipart upload
Screenshot of JAR file upload to s3 console