attribute file: max size file

Author Message

Marcin Drozd

Wednesday 19 July 2006 7:53:52 am

Hi
Is it possible to change max size file (attribute file in class) from MB to KB?

http://ez-publish.pl

Egil Fujikawa Nes

Wednesday 19 July 2006 8:47:48 pm

Hi Marcin

The max size file is handled by kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php, as fare as I know it's not any INI setting for changing this from MB to KB

A dirty hack is to change this line in kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php from 1024 * 1024 * to only 1024 *.

$maxSize = 1024 * 1024 * $classAttribute->attribute( EZ_DATATYPESTRING_MAX_BINARY_FILESIZE_FIELD );

Remember it's not recommended to hack the kernel.

Best regards
Egil Fujikawa Nes

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Marcin Drozd

Thursday 20 July 2006 12:14:35 am

Hi
Thank U
<i>it's not any INI setting</i>
it's a pity! :)
<i>Remember it's not recommended to hack the kernel.</i>
yeah, I know, and I think I'm going to create a new datatype ezbinaryfileKB ;)
tnx

http://ez-publish.pl

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:04:57
Script start
Timing: Jan 19 2025 09:04:57
Module start 'layout'
Timing: Jan 19 2025 09:04:57
Module start 'content'
Timing: Jan 19 2025 09:04:58
Module end 'content'
Timing: Jan 19 2025 09:04:58
Script end

Main resources:

Total runtime0.7436 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.0068 590.2891152.6250
Module start 'layout' 0.00680.0038 742.914139.4453
Module start 'content' 0.01060.7317 782.3594531.8281
Module end 'content' 0.74230.0013 1,314.187512.1641
Script end 0.7436  1,326.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4747160.0002
Check MTime0.00140.1904160.0001
Mysql Total
Database connection0.00100.129110.0010
Mysqli_queries0.692593.1316570.0121
Looping result0.00060.0751550.0000
Template Total0.709195.420.3545
Template load0.00220.299220.0011
Template processing0.706895.052720.3534
Template load and register function0.00020.030810.0002
states
state_id_array0.00130.169510.0013
state_identifier_array0.00100.130620.0005
Override
Cache load0.00180.2375220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.072120.0003
Fetch class attribute name0.00120.156740.0003
XML
Image XML parsing0.00210.284720.0011
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00230.3049160.0001
String conversion0.00000.001640.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs