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 eZ publish 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 Dieding@xrow.de

Wednesday 22 September 2004 7:35:04 am

Change header:

Content-Disposition: attachment

to

Content-Disposition: inline

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.