'enhancedezbinaryfile' Extension : problem with file url

Author Message

Anthony M.

Friday 05 September 2008 2:06:40 am

Hello,

i've installed the 'enhancedezbinaryfile' extension to collect informations of 'File' type, it works correctly :
- send form on the website is OK
- file upload is OK
- send mail is OK
but there is no link in the back to download the uploaded file... and i can't display the crypted file url (this file is stored in var/<siteaccess>/storage/original/collected/application/) in the email

Can you help me please ?
Thanks in advance

Anthony

Steven E. Bailey

Monday 08 September 2008 2:28:04 am

If you modify:

standard/templates/content/datatype/result/info/enhancedezbinaryfile.tpl

like this:

{section show=$:attribute.data_text}
<a href={$:attribute.data_text|parsexml("Filename")|ezroot}>
{$:attribute.data_text|parsexml("OriginalFilename")}</a> {'succesfully uploaded.'|i18n( 'design/standard/content/datatype' )}
{*'File succesfully uploaded.'|i18n( 'design/standard/content/datatype' )*}
{/section}

You'll see the file link in the results.

However, the person uploading the file will also see it on the results page, which may not be desirable unless the extension is restricted. Otherwise, you'll probably want to wrap that with some kind of authentication such as was done with the ez4 version of the datatype - take a look at: http://projects.ez.no/enhancedezbinaryfile

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Anthony M.

Tuesday 09 September 2008 1:43:58 am

thanks a lot, it works fine now !!

Anthony

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 16:05:09
Script start
Timing: Jan 18 2025 16:05:10
Module start 'layout'
Timing: Jan 18 2025 16:05:10
Module start 'content'
Timing: Jan 18 2025 16:05:10
Module end 'content'
Timing: Jan 18 2025 16:05:10
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.4922152.6406
Module start 'layout' 0.00610.0033 742.132839.4766
Module start 'content' 0.00950.0054 781.609489.3984
Module end 'content' 0.01490.0022 871.007834.3047
Script end 0.0171  905.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.8927140.0002
Check MTime0.00126.7973140.0001
Mysql Total
Database connection0.00073.834110.0007
Mysqli_queries0.003118.082430.0010
Looping result0.00000.128010.0000
Template Total0.001810.410.0018
Template load0.00105.618910.0010
Template processing0.00084.778710.0008
Override
Cache load0.00073.850810.0007
General
dbfile0.00031.837780.0000
String conversion0.00000.204540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs