Home > Amazon S3 > PDF hosted on S3 not rendering in FireFox

PDF hosted on S3 not rendering in FireFox

I was having a problem with a PDF document showing up in the browser. The PDF was on an Amazon S3 server and it was called from an HTML file. When I clicked on the link, the browser was blank. The URL looked correct.

I checked that the permissions were correctly set for the PDF file on S3. They were.

I was using FireFox 4 on Win7, so I tried other browsers. IE 6, 7, 8, and Chrome all rendered the PDF correctly.

I opened the PDF in FireFox directly from my computer and it opened fine.

I uploaded the PDF to my person al site and it displayed properly in FireFox 4.

I read a few blogs that talked about the Metadata and setting the “Content-Type” in the Amazon Web Services Console. So I went there and I checked the PDF and it was already set to “application/pdf”.

After spinning my wheels a while longer I checked some of the other values in the “Content-Type” drop-down and did not see any other settings that would apply. So I set it back to “application/pdf” and for the hell of it, I hit “save”. Well that did it. The PDF now showed up?????

Advertisement
Categories: Amazon S3 Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.