File upload file name reformat

Author Message

H-Works Agency

Tuesday 28 March 2006 6:29:10 am

Hi all

Is there a way to force uploaded files to be renamed in a web compliant way ?

Web compliant = [a-zA-Z] + [0-9] + [-_]

It would use exactly the same process as ezp does for class attributes identifier name when you don't enter one.

In fact when you edit a class attribute and if you enter a Name like "My Field is Here !" then Ezp will automatically create an identifier name "my_field_is_here".

So i the behavior exist for upload ? Cause i have to repeat my clients one time a day to name their file correctly and its being very boring...i am even gonna kill one someday.

Thanx for any help.
Martin

EZP is Great

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 09:36:25
Script start
Timing: Jan 19 2025 09:36:25
Module start 'layout'
Timing: Jan 19 2025 09:36:25
Module start 'content'
Timing: Jan 19 2025 09:36:26
Module end 'content'
Timing: Jan 19 2025 09:36:26
Script end

Main resources:

Total runtime1.2704 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 590.2813152.6250
Module start 'layout' 0.00850.0024 742.906339.4453
Module start 'content' 0.01091.2578 782.3516462.4219
Module end 'content' 1.26870.0017 1,244.77348.1641
Script end 1.2704  1,252.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2976160.0002
Check MTime0.00160.1224160.0001
Mysql Total
Database connection0.00150.115310.0015
Mysqli_queries1.217795.8530460.0265
Looping result0.00050.0409440.0000
Template Total1.224196.420.6121
Template load0.00250.195520.0012
Template processing1.221696.159820.6108
Template load and register function0.00010.009410.0001
states
state_id_array0.00160.124510.0016
state_identifier_array0.00460.365220.0023
Override
Cache load0.00200.1543120.0002
Sytem overhead
Fetch class attribute can translate value0.00080.064510.0008
Fetch class attribute name0.00100.078320.0005
XML
Image XML parsing0.00040.035310.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00220.1742170.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs