Search code examples
amazon-web-servicesamazon-s3api-gateway

S3 image file format not supported


I want to PUT an image from Postman into my S3 bucket via API gateway using FORMDATA. However whenever I try to open the image on S3 it downloads the image and is unable to open the image.

The image displays correctly when I upload the image by setting the upload to binary instead of form data.

I have set the binary media types in API gateway settings to / for those of you wondering. What am I doing wrong?


Solution

  • Go To apigateway setting and add binary media type ="multipart/form-data"

    enter image description here