I can't get the PDFs to preview before downloading

Phoca Download - download manager
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: I can't get the PDFs to preview before downloading

Post by Jan »

Hi, first try to set it in options - in edit of the file:

Direct Link: Yes.

Jan
If you find Phoca extensions useful, please support the project
underwatercolours
Phoca Member
Phoca Member
Posts: 19
Joined: 08 May 2012, 22:51

Re: I can't get the PDFs to preview before downloading

Post by underwatercolours »

OK, I found that, but doing this one at a time for hundreds of files will make me crazy. Is there any batch way to do this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: I can't get the PDFs to preview before downloading

Post by Jan »

Hi, I think the best way is to do it directly in the database, e.g. in phpMyadmin, set Yes (1) for all the items (if all should be changed)

Code: Select all

UPDATE #__phocadownload SET directlink = 1;
(didn't test it yet, so make an backup of database before running this query, and don't forget to replace #__ to your database prefix)

Be awary this SQL changes every items to direct link (there is no where clause)

Jan
If you find Phoca extensions useful, please support the project
Post Reply