Restrict file types that can be uploaded

Author Message

Clive Flatau

Tuesday 15 March 2005 3:03:31 am

Is it possible to restrict the file types that can be uploaded via tha admin interface i.e. not allow uploading of .exe and restricting to say .doc, pdf, .xls.

Eirik Alfstad Johansen

Tuesday 15 March 2005 3:42:18 am

Hi Clive,

You'll probably have to create a separate datatype for this purpose. However, if you start with the current ezbinary datatype as a basis, it shouldn't be too difficult.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Clive Flatau

Tuesday 15 March 2005 4:20:51 am

Thanks - thought that was the case

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 01:04:22
Script start
Timing: Jan 19 2025 01:04:22
Module start 'layout'
Timing: Jan 19 2025 01:04:22
Module start 'content'
Timing: Jan 19 2025 01:04:23
Module end 'content'
Timing: Jan 19 2025 01:04:23
Script end

Main resources:

Total runtime0.6545 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2891152.6406
Module start 'layout' 0.00540.0033 741.929739.4766
Module start 'content' 0.00870.6446 781.4063526.7109
Module end 'content' 0.65330.0012 1,308.11728.2813
Script end 0.6545  1,316.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5369160.0002
Check MTime0.00140.2171160.0001
Mysql Total
Database connection0.00070.109910.0007
Mysqli_queries0.608893.0151570.0107
Looping result0.00060.0961550.0000
Template Total0.617994.420.3089
Template load0.00270.419420.0014
Template processing0.615193.985020.3076
Template load and register function0.00020.036510.0002
states
state_id_array0.00210.321510.0021
state_identifier_array0.00100.148020.0005
Override
Cache load0.00220.3368100.0002
Sytem overhead
Fetch class attribute can translate value0.00080.116420.0004
Fetch class attribute name0.00100.152240.0002
XML
Image XML parsing0.00080.128220.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00210.3232160.0001
String conversion0.00000.001540.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
3content/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/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: 5

Time used to render debug report: 0.0001 secs