How to directly open file?

Author Message

bill hung

Wednesday 29 December 2004 2:19:37 am

Dear,
if my file.ini was set:
[BinaryFileSettings]
Handler=ezfilepasstrough

when I a open a file by "<a href=..>...</a>", will appear a download dialog and the file is display on new page.

if my file.ini was set:
[BinaryFileSettings]
Handler=ezfiledirect

I cannot open any file, the url is "parent_node".

How to directly open a file without appear download dialog?

thanks.

Valenti salas

Wednesday 29 December 2004 10:29:30 am

I'm in the same problem.

I advice you if i found an answer.

bill hung

Monday 03 January 2005 6:59:17 pm

Dear Valenti,

do you get the way?

my ezpublish's version is 3.3,

I will upgrade it to 3.5 and see whether the problem is display yet!

thanks.

Jan Borsodi

Tuesday 04 January 2005 1:20:43 am

The <i>ezfiledirect</i> will only work if the links point to the file on the filesystem.

Do make this work you will have to change your template code for the datatype, it should look something like:

<a href="{$attribute.content.filepath|ezroot}">download</a>

You will also need to make sure your webserver is configured to server these files directly.

In general I would recommend to use the <i>ezfilepasstrough</i> handler, unless you have some problems with it. The <i>ezfiledirect</i> handler cannot check user permissions for instance.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 18 2025 22:15:02
Script start
Timing: Jan 18 2025 22:15:02
Module start 'layout'
Timing: Jan 18 2025 22:15:02
Module start 'content'
Timing: Jan 18 2025 22:15:03
Module end 'content'
Timing: Jan 18 2025 22:15:03
Script end

Main resources:

Total runtime0.5475 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.0051 589.1328152.6250
Module start 'layout' 0.00510.0027 741.757839.4453
Module start 'content' 0.00780.5384 781.2031574.3047
Module end 'content' 0.54620.0012 1,355.507812.1641
Script end 0.5474  1,367.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5971160.0002
Check MTime0.00140.2524160.0001
Mysql Total
Database connection0.00070.123710.0007
Mysqli_queries0.498591.0449620.0080
Looping result0.00050.0983600.0000
Template Total0.519794.920.2598
Template load0.00190.347420.0010
Template processing0.517894.569220.2589
Template load and register function0.00020.044710.0002
states
state_id_array0.00030.057410.0003
state_identifier_array0.00100.176420.0005
Override
Cache load0.00160.2887300.0001
Sytem overhead
Fetch class attribute can translate value0.00050.089330.0002
Fetch class attribute name0.00130.234050.0003
XML
Image XML parsing0.00070.131130.0002
class_abstraction
Instantiating content class attribute0.00000.002850.0000
General
dbfile0.00070.1207170.0000
String conversion0.00000.001540.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs