Forums / Setup & design / attribute file: max size file

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