You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-10-10 16:33:08

DkDeep
Member
Registered: 2016-10-10
Posts: 2

Open pdf in browser rather than download

Hi!

After upgrade to version 9.1 pdf files not open in browser, I can only download.
Images open in browser.

How to enable opening files in browser?

Offline

#2 2016-10-11 20:15:17

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Open pdf in browser rather than download

Okay really smile))))

Can you tell us which browser do you use ?


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#3 2016-10-12 12:12:20

DkDeep
Member
Registered: 2016-10-10
Posts: 2

Re: Open pdf in browser rather than download

Chrome, IE, Firefox.
Different computers.

Offline

#4 2016-10-12 13:23:19

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Open pdf in browser rather than download

Firefox 49.0.1
IE 11.0.9600.18450

I can also repruduce this on my test system which is already 9.1.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#5 2017-02-24 15:02:57

mrsoliveira
Member
Registered: 2017-02-15
Posts: 10

Re: Open pdf in browser rather than download

Any idea about thi situation?

Offline

#6 2017-02-26 02:14:14

eulogy
Member
Registered: 2013-10-11
Posts: 118

Re: Open pdf in browser rather than download

Clear browser cache!

Last edited by eulogy (2017-02-26 02:32:35)

Offline

#7 2017-03-01 16:39:47

mrsoliveira
Member
Registered: 2017-02-15
Posts: 10

Re: Open pdf in browser rather than download

eulogy wrote:

Clear browser cache!

I did this and run a new test.
Follows the problem. Anyone have any ideas?
I'm using version 9.1.2.
Does anyone using this version can open direct attached files (pdf) in the browser?

Offline

#8 2017-03-07 17:00:50

Oyabi
Member
Registered: 2016-06-13
Posts: 4

Re: Open pdf in browser rather than download

I've got the same problem.
Have you found a solution?

Offline

#9 2017-03-07 18:05:20

Oyabi
Member
Registered: 2016-06-13
Posts: 4

Re: Open pdf in browser rather than download

Ok easy.
Open the file inc/document.class.php.
Line 465, in the send function, edit this line :

      if (!in_array($extension, array('jpg', 'png', 'gif', 'bmp'))) {

to this :

      if (!in_array($extension, array('jpg', 'png', 'gif', 'bmp', 'pdf'))) {

Regards.

Offline

#10 2018-05-25 17:53:41

shepettibone
Member
From: Oakland, CA
Registered: 2018-05-25
Posts: 1

Re: Open pdf in browser rather than download

Well, so try to use IE and Firefox lesser - that's their big thing smile Chrome was here too for some time, but now everything is fine. My suggestion here is to consider to use other else websites to get your PDF's to view, like issuu or something. Or you can store them safely with the service like this one https://w9.pdffiller.com even if you don't need to edit anything - just to keep them in one place and to have fast and smooth access to them. Don't know would you consider such an advise as helpful, but will see

Offline

Board footer

Powered by FluxBB