Hi,
I use Google Drive for sharing files with Phoca Download. With the File Module, my purpose is to let people download directly the last files uploaded, but when I click the link for downloading the file I get this error: File type not found.
The direct link of Google Drive is correct. What can I do?
Thank you
[SOLVED] Problem using Phoca D. File Module with GDrive link
-
- Phoca Member
- Posts: 24
- Joined: 15 Oct 2011, 16:03
[SOLVED] Problem using Phoca D. File Module with GDrive link
Last edited by Mentos on 12 Mar 2014, 10:18, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem using Phoca Download File Module with GDrive lin
Hi, did you set:
- right direct link to the file
- parameter direct link to yes?
Jan
- right direct link to the file
- parameter direct link to yes?
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 24
- Joined: 15 Oct 2011, 16:03
Re: Problem using Phoca Download File Module with GDrive lin
Yes! For example you can download the file correctly if you visit Phoca Download page.
In the module, the parameter is set to Yes, but in the module frontend the file link is not a Google Drive link, but it is a Phoca Download.
In the module, the parameter is set to Yes, but in the module frontend the file link is not a Google Drive link, but it is a Phoca Download.
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem using Phoca Download File Module with GDrive lin
Hi, if you set:
direct link - the link goes directly to the file on external server
not direct link - the link goes to Phoca Download, e.g. statistics will be done and then Phoca Download redirects to the external link.
Jan
direct link - the link goes directly to the file on external server
not direct link - the link goes to Phoca Download, e.g. statistics will be done and then Phoca Download redirects to the external link.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 24
- Joined: 15 Oct 2011, 16:03
Re: Problem using Phoca Download File Module with GDrive lin
Thank you Jan, but if I set not direct link and I click on Download button on PD, I get the same error: File type not found.
Why??
Why??

- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem using Phoca Download File Module with GDrive lin
Hmm, really no idea why, testing it now and get no such problem, try to fill the input form in File edit with some name - e.g. the same name like the directly link has, e.g.
if the directly link is: test.com/link/file.zip - add to file name "file.zip", so:
File name: "file.zip"
Eternal download link "test.com/link/file.zip" for example
Jan
if the directly link is: test.com/link/file.zip - add to file name "file.zip", so:
File name: "file.zip"
Eternal download link "test.com/link/file.zip" for example
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 24
- Joined: 15 Oct 2011, 16:03
Re: Problem using Phoca Download File Module with GDrive lin
Hi Jan, the problem is that Google Drive direct links don't terminate with file.ext, and I have alredy tried to fill the name with the entire link, without success. Have you ever tried with a GDrive link?
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem using Phoca Download File Module with GDrive lin
Hmm, then the solution is to not use the checking but this is possible since version 3
, so for now such needs to be customized in the code 
Jan


Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 24
- Joined: 15 Oct 2011, 16:03
Re: Problem using Phoca Download File Module with GDrive lin
Ok, is it difficult to customize? Could you give me some advice?
- Jan
- Phoca Hero
- Posts: 48676
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem using Phoca Download File Module with GDrive lin
Hi, you can try to compare the functions between 2 and 3
See e.g. the download library which is important:
administrator\components\com_phocadownload\libraries\phocadownload\download\download.php
you can disable the checking here - e.g. to set that all files will be allowed.
Jan
See e.g. the download library which is important:
administrator\components\com_phocadownload\libraries\phocadownload\download\download.php
you can disable the checking here - e.g. to set that all files will be allowed.
Jan
If you find Phoca extensions useful, please support the project