Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have uploaded some animated GIF banners to our S3 account and when we use the web url provided by S3 and try to view the banners in a browser, instead of display the banners in the browsers, I get prompted to download the banner image. Why is this?

When I uploaded a JPG image in the same S3 bucket and try to view it with a browser, I don't have this problem?

How do we solve this problem? We would like to syndicate our GIF banners through various affiliate sites. Could this cause issues at their end? The full URL of the banner is in this format banners.mydomain.com.s3.amazonaws.com/dining-728x90.gif. Even when we use the CNAME version we have the same issue. The CNAME version is banners.mydomain.com/dining-728x90.gif.

share|improve this question
1  
Just so you know, they'll still work fine in <img> tags. –  ceejayoz Oct 13 '11 at 15:07
add comment

1 Answer

up vote 1 down vote accepted

This is due to a proper mime type not being added for gif files. Add it or change the current mime type for that file to the appropriate gif mime type rather than binary/octet and the problem will be fixed.

share|improve this answer
    
To follow-up, here is a related question with a solution regarding changing the mimetype on files on Amazon S3 from SO: stackoverflow.com/questions/4694748/… –  Doug Oct 13 '11 at 15:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.