Tuesday, 6 August 2013

Forcing an anchor href to treat MIME octet-stream as images?

Forcing an anchor href to treat MIME octet-stream as images?

I have some images that were incorrectly stored on S3 with the MIME type
of application/octet-stream. When I put this images on a website with an
anchor, ie, <a href="imgurl", the image is automatically downloaded
instead of being viewed in the browser.
Is there anyway to workaround this issue and force the browser to treat a
link as an image?

No comments:

Post a Comment