Quick file link

Phoca Download - download manager
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Quick file link

Post by fmeneuhe »

Hi,
I would like to suggest next request:
In the admin Control Panel, in the File section, would be very useful to copy a direct link to the file, so I can make my own links in HTML by example, to directly download the file.
Thanks

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Hi, maybe the unique download link can fit your needs:

Image

Jan
If you find Phoca extensions useful, please support the project
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

How do I get this unique download link?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

You can see this link in edit of a file in administration (top right).

Jan
If you find Phoca extensions useful, please support the project
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

Ok I found it. I generated the token. I found the unique download link, but when I copy the link and paste on the browser I get an "404 Page Not Found".
Is this a Phoca Download bug?
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

I guess there is a bug, in the Unique Download Link generated, there are two slashes "//" like this "...//index.php...", if I remove one slash the download file page is shown, but when I click on the "Download" button I get and "Invalid token".
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Hi, the link should be created by your SEF settings, I will take a look at it. But there is no token to check whe you link to a file :idea. So, try to clear your browser cache and try to copy the link again (without the //). Do you still get the token problem? Can you paste a screenshot?

Jan
If you find Phoca extensions useful, please support the project
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

I cleared the cache, I removed the extra slash "/" and here you have the screenshots of the process (still an invalid token):
1) https://imgur.com/UYQKJCz
2) https://imgur.com/dodoM06
3) https://imgur.com/8fEdd6t
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Hmmm, what if you disable SEF on your site (for test only), copy the URL without SEF format, do you get the same problem then?

Jan
If you find Phoca extensions useful, please support the project
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

I disabled SEF, the direct download link URL now changed to:
http://XXXXXXX//index.php?option=com_ph ... Itemid=743

Still with double slash. I removed the extra slash, and exactly the same problem as SEF enabled, nothing changed. I am using Joomla 3.9.3
Post Reply