Forums / Setup & design / Problems downloading downloadable PDFs from Ez 3.4 - always open/save dialogue

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problems downloading downloadable PDFs from Ez 3.4 - always open/save dialogue

Author Message

steve walker

Tuesday 21 September 2004 10:44:38 am

Hi there,

This is a continuation of a 2.2 forum thread that can found at:

http://www.ez.no/ez_publish/info/ez_publish_2_2/forum/general/every_file_asks_for_open_or_save_when_trying_to_download_from_ezp226_file_manager

We have a site with downloadable PDFs - if you go to download one of them you always get the open/save dialogue opening up. However, on the same webspace, if I place a PDF file and point my browser at it it opens within the browser as per usual. So it seems the issue is with Ez in some way.

Has anyone observed this or knows of a fix?

Thanks, Steve.

http://www.oneworldmarket.co.uk

Kåre Køhler Høvik

Wednesday 22 September 2004 12:32:28 am

The HTTP setting Exponential uses for PDFs are defined here : lib/ezutils/classes/ezmimetype.php
Default : application/pdf

Try to see if your webserver return the same mimetype for linked files.

Kåre Høvik

Björn X

Wednesday 22 September 2004 7:35:04 am

Change header:

Content-Disposition: attachment

to

Content-Disposition: inline

steve walker

Wednesday 22 September 2004 9:19:49 am

Björn and Kåre,

Thanks for the help - I now have this working.

Have changed to "Content-Disposition: inline" - FYI, the file I adjusted was ezfilepasstroughhandler.php found in kernel/classes/binaryhandlers/ezfilepasstrough

PDFs now open inside the browser :-)

Steve.

http://www.oneworldmarket.co.uk