Jump to content

download script (for mailclient), works in FF, not in IE, what to do?


surion

Recommended Posts

currently i m writing a mailclient, when there is a file attached to the mail it has to be downloaded, i tested this with next 2 parts of scripts:

 

first one:

header("Content-Description: File Transfer");

header("Content-Type: application/octet-stream; name=\"".$filename."\"");

header("Content-Disposition: attachment; filename=".basename($filename));

header("Content-Transfer-Encoding: binary");

 

second one:       

header("Content-Description: File Transfer");

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

header("Content-Disposition: attachment; filename=".basename($filename));

header("Content-Transfer-Encoding: binary") ;

 

they both work fine with Firefox (2.0), but neither works with IE (using IE7), any suggestions to make at least one of them work in IE7 as well?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.