speedy33417 Posted December 29, 2008 Share Posted December 29, 2008 I have a custom built gallery. I have pictures and videos posted on the site. I want people to be able to download the original pictures or video AVI files. If I just use a regular <a> tag it will open the file. How do I force a download prompt? Thanks. Link to comment https://forums.phpfreaks.com/topic/138687-download-file/ Share on other sites More sharing options...
speedy33417 Posted January 1, 2009 Author Share Posted January 1, 2009 anyone? Link to comment https://forums.phpfreaks.com/topic/138687-download-file/#findComment-727659 Share on other sites More sharing options...
htmlstig Posted January 2, 2009 Share Posted January 2, 2009 the only way i can think of is putting <FilesMatch "\.jpg$"> Header add Content-Disposition "Attachment" </FilesMatch> into the .htaccess file but im not sure if it will work for you as you are using a gallery but its worth a go Link to comment https://forums.phpfreaks.com/topic/138687-download-file/#findComment-728334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.