PDF file open in Browser (not download)

Phoca Download - download manager
amir00251
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 May 2011, 21:51

PDF file open in Browser (not download)

Post by amir00251 »

Hello,

I am trying to upload pdf files that could be open in a new tab inside the browser however, I have looked around and cannot find the right settings? Is it possible to do this in Phoca Download?

Does Direct Link settings relates to this problem? Yes or NO makes no difference to me.

Appreciate a bit of hint.

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

Re: PDF file open in Browser (not download)

Post by Jan »

Hi,
Does Direct Link settings relates to this problem?
Yes, when you use direct link, you just add the link direct to the file and leave every control on user's browser. So then settings in browser decide how the PDF file will be displayed (in in page, another tab or as downloadable file)

When you don't use direct link, Phoca Download tries to force the displaying/downloading the PDF:

- so when downloading, Phoca Download set header of the document so browser will download it and not display
- when previewing, Phoca Download tries to open the file in browser (the same window, or popup), but this can be managed by browser so browser will not allow it.

So in the end, everything depends on browser options, but if they are default, the browser listens to server commands.

Jan
If you find Phoca extensions useful, please support the project
thepianiste
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Oct 2018, 11:34

Re: PDF file open in Browser (not download)

Post by thepianiste »

Hi Jan

I have the same request, but my problem is that I use an "absolute path" (the files being subject to data protection, they must not be accessible directly via the Internet) and that currently it is not possible to point the previews in this folder in the control panel.

I think I can do a fork of the code and manually change, but after it will be problematic with the updates.

Esaïe
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF file open in Browser (not download)

Post by Jan »

Hi, see:
https://www.phoca.cz/documents/17-phoca ... tml-folder
https://www.phoca.cz/documents/17-phoca ... ng-folders

Files for download are stored in other folder than files for preview and play - because of the data protection
Jan
If you find Phoca extensions useful, please support the project
Post Reply