Page 1 of 1

download the file

Posted: Thu Nov 17, 2005 1:58 pm
by rajan
when i download the adobe acrobat reader file using
header('Content-type: application/pdf');
it is working good for pdf

but in case of exe it's not working good and give unknown file type when i use the header
header('Content-type: application/exe');

Posted: Thu Nov 17, 2005 2:08 pm
by Burrito
try application/octet-stream

or one of the others from here:

http://www.filext.com/detaillist.php?ex ... rch=Search

Posted: Thu Nov 17, 2005 2:15 pm
by pickle
Are you trying to force a download - so that no matter what the file is the user downloads it? If so, do a search for 'force download' and you'll find what you need.

If you're just concerned with an exe file, the mime type you want is: application/octet-stream

Posted: Thu Nov 17, 2005 2:29 pm
by rajan
thank you Burrito for very usefull link