Download

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tintin
Forum Newbie
Posts: 13
Joined: Fri Dec 13, 2002 7:13 am

Download

Post by tintin »

Hi,

I have made a download link with these Header :

Header("Cache-control: private");
Header("Location: $Url" );
Header("Content-Type: application/ext");

It works, but I have still a problem :

With MSIE 5, users find the link but when they choose "execute" without saving to disk, they get an error "invalid file name" when the application opens the file. The file name is like "\Temporary internet files\Content.IE5\xxxxx [n].ext"

There is no problem when they decide to save the file somewhere and open it, and it occurs with any application linked to "ext".

I have seen other sites doing the same without this problem : what should I do to workaround ?

I understand that it is not exactly a PHP issue, but I'm afraid it is hopeless to ask M$ about that.
Post Reply