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.

eZ debug

Timing: Jan 19 2025 04:28:05
Script start
Timing: Jan 19 2025 04:28:05
Module start 'layout'
Timing: Jan 19 2025 04:28:05
Module start 'content'
Timing: Jan 19 2025 04:28:06
Module end 'content'
Timing: Jan 19 2025 04:28:06
Script end

Main resources:

Total runtime0.9857 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.7656152.6875
Module start 'layout' 0.00500.0027 743.453139.5234
Module start 'content' 0.00760.9764 782.9766584.7188
Module end 'content' 0.98400.0016 1,367.695312.0625
Script end 0.9856  1,379.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3360160.0002
Check MTime0.00130.1320160.0001
Mysql Total
Database connection0.00090.086710.0009
Mysqli_queries0.929994.3456620.0150
Looping result0.00070.0751600.0000
Template Total0.954796.920.4774
Template load0.00210.211420.0010
Template processing0.952696.649420.4763
Template load and register function0.00020.024210.0002
states
state_id_array0.00100.100710.0010
state_identifier_array0.00180.182120.0009
Override
Cache load0.00170.1743260.0001
Sytem overhead
Fetch class attribute can translate value0.00070.071730.0002
Fetch class attribute name0.00160.165860.0003
XML
Image XML parsing0.00130.133430.0004
class_abstraction
Instantiating content class attribute0.00000.002460.0000
General
dbfile0.00120.1168210.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs