[SOLVED] Problem using Phoca D. File Module with GDrive link

Phoca modules - support for all Phoca modules except Phoca Gallery modules
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

[SOLVED] Problem using Phoca D. File Module with GDrive link

Post 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
Last edited by Mentos on 12 Mar 2014, 10:18, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem using Phoca Download File Module with GDrive lin

Post by Jan »

Hi, did you set:

- right direct link to the file
- parameter direct link to yes?

Jan
If you find Phoca extensions useful, please support the project
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

Re: Problem using Phoca Download File Module with GDrive lin

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem using Phoca Download File Module with GDrive lin

Post 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
If you find Phoca extensions useful, please support the project
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

Re: Problem using Phoca Download File Module with GDrive lin

Post 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?? :!:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem using Phoca Download File Module with GDrive lin

Post 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
If you find Phoca extensions useful, please support the project
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

Re: Problem using Phoca Download File Module with GDrive lin

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem using Phoca Download File Module with GDrive lin

Post 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
If you find Phoca extensions useful, please support the project
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

Re: Problem using Phoca Download File Module with GDrive lin

Post by Mentos »

Ok, is it difficult to customize? Could you give me some advice?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem using Phoca Download File Module with GDrive lin

Post 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
If you find Phoca extensions useful, please support the project
Post Reply