jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: Tazzios on 27.11.2020 13:46:22

Title: Preview only works when the directory is not secured
Post by: Tazzios on 27.11.2020 13:46:22
It would benice if the preview file also can be accessed by an url like 'index.php?option=com_jdownloads&task=download.send&id=XX'
for example:
index.php?option=com_jdownloads&task=preview.send&id=XX

That way:
- The preview also would work with a secured directory
- I can extend my pdfviewer with an preview option.  ;D
Title: Re: Preview only works when the directory is not secured
Post by: Arno on 01.12.2020 00:11:24
Hi,
where shall be here the bug? I do not understand what you really mean.
Title: Re: Preview only works when the directory is not secured
Post by: Tazzios on 11.12.2020 13:26:32
Yes I see i do not mention that to clearly.  ;D

Preview uses a direct file link because of that in the following situations preview wont work:

1. you set the setting security 'Protect your Download Directory' to yes
2. If your download folder is outsite the public html folder

when the file would be called with the jdownloads php script it could keep working.
Title: Re: Preview only works when the directory is not secured
Post by: ColinM on 11.12.2020 13:35:24
Tazzios,Which browser were you using?  I ask because Crome requires a https: and it might be being generated as http:
This is often the case with older installations.

Colin
Title: Re: Preview only works when the directory is not secured
Post by: Tazzios on 11.12.2020 13:45:20
Firefox.
I run into this problem al long time ago(2 years maybe?) but back then i deed not needed the preview function.
Title: Re: Preview only works when the directory is not secured
Post by: Tazzios on 27.12.2020 14:10:14
attached some more detailed info.