GamingWarrior Posted October 14, 2007 Share Posted October 14, 2007 I've looked around but i can't seem to find away to force download of certain file types, i tried <Files *.ptf> ForceType application/octet-stream Header set Content-Disposition attachment </Files> in htaccess but it just made the folder which had that file in it unable to be opened at all :S Any help would be great Quote Link to comment https://forums.phpfreaks.com/topic/73202-solved-force-download/ Share on other sites More sharing options...
trq Posted October 14, 2007 Share Posted October 14, 2007 There is a nice little tutorial in the FAQ/Snippet Repository that show you how to do it with php. Quote Link to comment https://forums.phpfreaks.com/topic/73202-solved-force-download/#findComment-369259 Share on other sites More sharing options...
GamingWarrior Posted October 14, 2007 Author Share Posted October 14, 2007 AddType application/octet-stream .ptf That did the job but thanks anyway Quote Link to comment https://forums.phpfreaks.com/topic/73202-solved-force-download/#findComment-369262 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.