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 » 06 Feb 2019, 10:47

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: 41483
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan » 06 Feb 2019, 18:02

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 » 12 Feb 2019, 12:57

How do I get this unique download link?

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

Re: Quick file link

Post by Jan » 12 Feb 2019, 20:32

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 » 12 Feb 2019, 23:54

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 » 13 Feb 2019, 00:15

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: 41483
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan » 13 Feb 2019, 09:42

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 » 13 Feb 2019, 10:32

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: 41483
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan » 13 Feb 2019, 11:32

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 » 13 Feb 2019, 11:41

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