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. Quote Link to comment Share on other sites More sharing options...
speedy33417 Posted January 1, 2009 Author Share Posted January 1, 2009 anyone? Quote Link to comment 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 Quote Link to comment 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.