jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: wolfspyryt on 03.03.2015 04:05:43

Title: Need images to download not open
Post by: wolfspyryt on 03.03.2015 04:05:43
I have .pmg & .gif for the download, and when the user clicks download, it opens the image in a browser. I need it to download. I have removed both png & gif from the "Open in browser" section and yet it does not change. I have the php script off and need it off. I have looked high and low for a solution, hope you can offer one please and thank-you.
Title: Re: Need images to download not open
Post by: wolfspyryt on 03.03.2015 04:13:36
I even removed all files from the "Which file types are to be opened in the Browser?" section. Opened phpMyadmin and verified that the Data Base had the right data and it does.
Title: Re: Need images to download not open
Post by: wolfspyryt on 03.03.2015 05:43:57
I resolved with an .htaccess file and the following code added to it:
<FilesMatch "\.(?i:doc|png|jpg|jpeg|gif)$">
  Header set Content-Disposition attachment
</FilesMatch>

I then placed that .htaccess file in each folder that contained images as downloads. I then turned off the php script and now my images download perfectly. Also, my app specific files now open with the correct app!!!
Title: Re: Need images to download not open
Post by: ColinM on 03.03.2015 09:20:41
Hi
Thank you for the info to solve the problem.

Colin