Limit file types to be uploaded?

Author Message

Martin Crockett

Friday 28 January 2005 7:22:19 am

Hi y'all,

This maybe a simple question to answer but I can't find a solution in the documentation and forums.

I need to limit the file types that can be uploaded.

Images - can only be GIF, JPEG or PNG

Media - can only be PDF, Word, Excel, PowerPoint, .txt or .rtf

What do I amend to get eZ Publish to limit upload to these types only?

Many thanks!

Martin
--
eZ Publish 3.5

Martin Crockett

Friday 04 February 2005 2:19:54 am

Any offers on a Friday?

Cheers.

Frederik Holljen

Friday 04 February 2005 2:51:47 am

The current datatypes do not support this. I suggest that you add this functionality to the datatypes (e.g image) and put in in an extension if you need it at once.
We'll be glad to add this functionality to eZ publish if you create it (see our helping out guidelines: http://ez.no/community/developer)

Martin Crockett

Friday 04 February 2005 4:05:45 am

Thanks.

You link http://ez.no/community/developer is broken, BTW. ;-)

Ɓukasz Serwatka

Friday 04 February 2005 4:39:42 am

Hi,

Is broken because there is a ")" at the end of URL ... Just remove it ... ;-)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19:16:49
Script start
Timing: Jan 18 2025 19:16:49
Module start 'layout'
Timing: Jan 18 2025 19:16:49
Module start 'content'
Timing: Jan 18 2025 19:16:50
Module end 'content'
Timing: Jan 18 2025 19:16:50
Script end

Main resources:

Total runtime0.8524 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9141152.6250
Module start 'layout' 0.00500.0034 740.539139.4609
Module start 'content' 0.00850.8425 780.0000607.4297
Module end 'content' 0.85100.0013 1,387.429712.1563
Script end 0.8524  1,399.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3629160.0002
Check MTime0.00130.1486160.0001
Mysql Total
Database connection0.00060.072310.0006
Mysqli_queries0.791892.8884650.0122
Looping result0.00070.0827630.0000
Template Total0.817095.820.4085
Template load0.00210.244020.0010
Template processing0.814995.602020.4075
Template load and register function0.00010.013110.0001
states
state_id_array0.00170.201310.0017
state_identifier_array0.00090.104520.0004
Override
Cache load0.00180.2093300.0001
Sytem overhead
Fetch class attribute can translate value0.00100.122130.0003
Fetch class attribute name0.00120.135780.0001
XML
Image XML parsing0.00200.234530.0007
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00210.2428300.0001
String conversion0.00000.000840.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs