7 years ago
7
Topic

Hi

When we click on a transfert file (a PDF)  into a content view the file is downloaded but how can we make it open in a new tab instead of just downloading please?

thanks

cyril

Get a Book for SEBLOD
7 years ago
0
Level 1

Hi

It's curious that we need to modify something on the server.

On the same website with JCE if you put a link to a PDF file inside an article the pdf file is opened in new tab.

But the SEBLOD file transfer behaviour just downloads the pdf file. 

thanks

Cyril

7 years ago
0
Level 1

Hi again

even if I insert the following block inside the Vhost:

<LocationMatch "\.(?i:pdf)$"> 

 ForceType application/pdf Header set Content-Disposition inline 

</LocationMatch>

The PDF from the File Transfer field is still downloaded instead of being opened in a new tab

thanks

Cyril

7 years ago
3
Level 1

Hi

Still nobody has a solution here please ?

thanks

cyril

4229 Posts
Kadministrator
7 years ago
2
Level 2

Unfortunatelly there is no solution, header is hardcoded to download https://github.com/Octopoos/SEBLOD/blob/master/components/com_cck/download.php#L80

You would need to use different field.

7 years ago
1
Level 3

Hi,

The download.php script is used to download...

To not download a PDF file but to open it into the web navigator, it's just to display a link to the physical PDF file. A typo plugin apply on value of file field can be a solution.

Of course, this usage is only for PUBLIC PDF file. By doing this there no ACL control of the file (done by the download.php script).

Thanks.

548 Posts
joomleb
6 years ago
0
Level 4

Hi guys, 

Do you have any update about this issue ?

I think that the Upload field need to be corrected by default from this point of view... When a file is uploaded there is no any preview... 

Get a VIP membership