Upload Image with RestAPI from api Gateway to the S3 bucket but can't open file not support

0

I have tried creating a rest api system for uploading images to s3 bucket. During the upload the response I received was 200 which looks normal and the data came up in s3 bucket. But when I tried Open to view images or download images to view and find that there is a notification that the file is not supported. I don't know what caused this problem either. Whether trying through the app that I wrote or Postman, I encountered this problem. the api setting binary file is /image/jpeg /image/png /image/jpg

File upload binary in postman with 200 response file show in s3 when open image in s3 when open file that download from s3

1 Answer
0

Hi,

Could you please check this article and compare if you setup the API Gateway as mentioned? Also, suggest trying with a curl command as mentioned in the article.

Hope this helps!

Thanks, Rama

profile pictureAWS
Rama
answered 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions