Solving IE file download issue PDF Print E-mail
 

Written by Jean-Loup Rebours-Smith, on 18-09-2007 12:50

Views : 146    

Favoured : 18

Published in : The News, Articles


Just a quick one. I've just been struggling with getting IE (both versions 6 and 7) to download a simple pdf. It was working fine in Opera and Firefox but IE would just block the download.

The issue was caused by php headers not being defined properly.

So remember that if you have your file type being defined as

header("Content-type: application/force-download");

it will not work in IE. Instead use the header

header("Content-type: application/octet-stream");

Hopefully this helps somebody.

Last update : 18-09-2007 12:50

Quote this article in website Favoured Send to friend Related articles Save this to del.icio.us

Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 
Comment language: English (0), Français (0)

No comment posted

Add your comment



mXcomment 1.0.7 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev   Next >