jDownloadsownloads.com


Author Topic: Preview only works when the directory is not secured  (Read 987 times)

0 Members and 1 Guest are viewing this topic.

Offline Tazzios

  • Newbie
  • *
  • Posts: 47
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

Offline Arno

  • Administrator
  • ***
  • Posts: 12.313
    • jDownloads.com
Re: Preview only works when the directory is not secured
« Reply #1 on: 01.12.2020 00:11:24 »
Hi,
where shall be here the bug? I do not understand what you really mean.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Tazzios

  • Newbie
  • *
  • Posts: 47
Re: Preview only works when the directory is not secured
« Reply #2 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.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.929
Re: Preview only works when the directory is not secured
« Reply #3 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

Offline Tazzios

  • Newbie
  • *
  • Posts: 47
Re: Preview only works when the directory is not secured
« Reply #4 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.

Offline Tazzios

  • Newbie
  • *
  • Posts: 47
Re: Preview only works when the directory is not secured
« Reply #5 on: 27.12.2020 14:10:14 »
attached some more detailed info.