Forcing file download for multiple files
Posted: Wed Apr 22, 2009 4:51 am
The title may be a little misleading, but basically I have a .php page which returns a list of files available for download.
What I want is that when the user clicks on the link to the file, they are prompted to download (regardless of file type)...
I know I need to use headers and content-disposition, but how do I include this on a page where the user may download any 1 of 50 files??
Does anyone have an example of a page they have similar to this (it must be quite common)...
Thanks in advance
What I want is that when the user clicks on the link to the file, they are prompted to download (regardless of file type)...
I know I need to use headers and content-disposition, but how do I include this on a page where the user may download any 1 of 50 files??
Does anyone have an example of a page they have similar to this (it must be quite common)...
Thanks in advance