I have a React app using AWS Amplify
. It takes about 2.5 minutes
to upload a 1 MB
(yes, 1 MB) image file to S3
bucket, which is unacceptably slow. I looked for similar questions and have not found any answers that worked.
Here is my code:
const s3Response = await Storage.put("filename.jpeg", file, { level: "protected", contentType: "image/jpeg" });
I am getting the file from an input type="file".
EDIT: This ONLY happens on Mac OS. When I run the app in Firefox on Windows, it works very fast. When I run the app in Firefox on Mac, it takes minutes.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/itxMNS5
Comments
Post a Comment