Getting Fun White Square when Uploading to S3 via Put


Friends, Countrymen, Lend me your ears…

I’m signing my url for amazon s3, and then using fileReader and Fetch to put my file in s3.
Though when I do I get a fun white square instead of my image:

  • Permissions Issue? Don’t really think so as you can definitely view the image
  • Corrupted somehow?
  • Maybe an incorrect content type?

Thanks for any guidance, been banging my head against the wall on this!


The contents of that appear to be a base64 encoded image. That is, you’re uploading a text file and not a binary image (and then saying it is, a image/png) You could just convert it first doing something like this first.

Leave a Reply