- Newest
- Most votes
- Most comments
hi we able to solve this issue , after discussing with aws support , as problem was not with cors. actual problem was with preflight request was giving 500 which i was mentioned in question . with this error
error Execution failed due to configuration error: Unable to transform request
we figure out Binary media in api setting / was causing the problem in my case , i have changed to image/png and its started working . Thanks for all help.
I am not sure what is causing the error, but why are you uploading through API Gateway? Why not upload directly to S3? Just generate a pre-signed upload URL using a Lambda function and upload directly using that URL. It will reduce the latency and also will bypass API Gateway's 10MB payload limit.
Did you enable CORS for both API Gateway and S3?
CORS docs:
yes i enabled the CORS for both , i able to solve it . posting the answer below .
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
hi i have requirement where i wanted to send event data direct to s3 as text file . so i do not have any file to upload. its actually text data which will store as file . but still i will look ur suggestion .