storage files in server directory

Author Message

anne martinet

Thursday 04 September 2008 4:59:46 am

Hello,

An Anonymous user can edit one class. In this class I use ezbinaryfile for one of my attributes.
And I want to upload this file on a serveur.

How can I store this file (of this classe) in this directory? This directory isn't in ezpublish install.

Thanks,

Maxime Thomas

Thursday 04 December 2008 10:19:36 pm

Hi,

You can't do that. Files are handled by eZpublish. So if you upload a file, it will be stored in the var/.../storage directory.

Or you can devlop a specific file handler which will do what you want...

Max

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 11:42:42
Script start
Timing: Jan 18 2025 11:42:42
Module start 'layout'
Timing: Jan 18 2025 11:42:42
Module start 'content'
Timing: Jan 18 2025 11:42:43
Module end 'content'
Timing: Jan 18 2025 11:42:43
Script end

Main resources:

Total runtime0.7019 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9219152.6250
Module start 'layout' 0.00680.0037 740.546939.4609
Module start 'content' 0.01040.6900 780.0078524.4688
Module end 'content' 0.70040.0015 1,304.47668.3125
Script end 0.7019  1,312.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4464160.0002
Check MTime0.00130.1868160.0001
Mysql Total
Database connection0.00110.158610.0011
Mysqli_queries0.648792.4253540.0120
Looping result0.00050.0712520.0000
Template Total0.658893.920.3294
Template load0.00200.288420.0010
Template processing0.656893.569820.3284
Template load and register function0.00020.028510.0002
states
state_id_array0.00130.180010.0013
state_identifier_array0.00070.103420.0004
Override
Cache load0.00170.2373140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.113220.0004
Fetch class attribute name0.00100.147230.0003
XML
Image XML parsing0.00070.106220.0004
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00080.1205160.0001
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs