PDF on S3 Served As image/png

273 Views Asked by At

I've uploaded some PDF files to S3 and some of them, but not all of them, have the following issue:

S3 reports the Content-Type as 'application/pdf', but it actually serves them as 'image/png', which of course breaks code meant to display PDF files.

Below are screenshots first of the file metadata on S3, and then of what network tools says of the same file.

S3

Network Tools

0

There are 0 best solutions below