Page 1 of 2
[SOLVED] Problem using Phoca D. File Module with GDrive link
Posted: 22 Feb 2014, 15:48
by Mentos
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
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 24 Feb 2014, 17:01
by Jan
Hi, did you set:
- right direct link to the file
- parameter direct link to yes?
Jan
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 24 Feb 2014, 17:18
by Mentos
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.
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 26 Feb 2014, 16:44
by Jan
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
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 26 Feb 2014, 17:08
by Mentos
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??

Re: Problem using Phoca Download File Module with GDrive lin
Posted: 27 Feb 2014, 18:17
by Jan
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
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 27 Feb 2014, 19:18
by Mentos
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?
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 01 Mar 2014, 11:01
by Jan
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
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 03 Mar 2014, 11:22
by Mentos
Ok, is it difficult to customize? Could you give me some advice?
Re: Problem using Phoca Download File Module with GDrive lin
Posted: 03 Mar 2014, 16:52
by Jan
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