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 個回答
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
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南