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.