Filter file extension when uploading new content

Author Message

Christian BELLET

Wednesday 28 May 2008 1:55:23 am

Hi all,
I'm using the based 'file' datatype but i like to allow only several kind of files to be uploaded (pdf, jpg, gif, odt...). I opened settings/upload.ini, file.ini but could'nt find what i'm looking for.

Thanks,
Christian

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 31 2025 01:24:34
Script start
Timing: Jan 31 2025 01:24:34
Module start 'layout'
Timing: Jan 31 2025 01:24:34
Module start 'content'
Timing: Jan 31 2025 01:24:34
Module end 'content'
Timing: Jan 31 2025 01:24:34
Script end

Main resources:

Total runtime0.0222 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2813151.2266
Module start 'layout' 0.00550.0033 739.5078220.7188
Module start 'content' 0.00880.0120 960.2266992.7266
Module end 'content' 0.02080.0014 1,952.953129.9922
Script end 0.0221  1,982.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.2602140.0002
Check MTime0.00115.1768140.0001
Mysql Total
Database connection0.00062.918510.0006
Mysqli_queries0.002210.089030.0007
Looping result0.00000.054810.0000
Template Total0.00104.510.0010
Template load0.00083.436910.0008
Template processing0.00021.068910.0002
Override
Cache load0.00052.115210.0005
General
dbfile0.00188.051280.0002
String conversion0.00000.035540.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