Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Force download header not working

$
0
0

Hello freaks,

 

Last week I asked for a way to download files without showing the paths and I was given this

 

		header("Content-Disposition: attachment; filename=\"{$fname}\"");
		header("Content-Type: application/force-download");
		header("Content-Description: File Transfer");  

 

 

It is downloading the files and all but the problem is that no matter what type of file I download it's never openable. Why is that and how do I fix it?

Thanks in advance!


Viewing all articles
Browse latest Browse all 13200

Trending Articles