Image Upload File Size -> 1MB smallest?

Author Message

Koos TDK

Tuesday 05 October 2004 2:31:59 am

Hi!

I added an image attribute to a class, but I want to limit the size of any uploaded image to 200k. It seems the smallest one can set it to is 1MB though, since the field does not save any value smaller than one (i.e. if I select 0.2 MB, it defaults back to 1MB once the change is stored).

Am I missing something?

Thanks!! :-)

Lazaro Ferreira

Tuesday 05 October 2004 3:10:26 pm

Hi,

AFAIK, that´s it , 1MB is the smallest

Lazaro
http://www.mzbusiness.com

Koos TDK

Monday 18 October 2004 12:28:02 am

Hi Lazaro, thanks for the response!

I am back on this problem again, I need to limit the size of image files uploaded to 100k.

Does anybody know how/where I can hack the code to limit the image upload size?? If I have to hard-code it for now, that's OK.

EZcrew - Maybe for version 3.5 you can make it selectable?

Thanks!! :-)

Koos TDK

Sunday 21 November 2004 10:31:55 pm

Does anybody have a solution for this? Maybe it is available in 3.5?

I really need to limit the size of images that can be uploaded to 100k, even if I have to hack some files manually somewhere.

Thanks for any help! :-)

Jorge estévez

Saturday 09 August 2008 2:42:03 am

Hello,

Did you find a solution, I am trying to hack the size and allow any size to be uploaded, I am using ez 3.8

Any clue ?

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Gabriel Finkelstein

Monday 11 August 2008 1:46:44 pm

Haven't tried it, but maybe changing in kernel/classes/datatypes/ezimage/ezimagetype.php from

define( 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD', 'data_int1' );

to

define( 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD', 'data_float1' );

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 06:16:48
Script start
Timing: Jan 31 2025 06:16:48
Module start 'layout'
Timing: Jan 31 2025 06:16:48
Module start 'content'
Timing: Jan 31 2025 06:16:48
Module end 'content'
Timing: Jan 31 2025 06:16:48
Script end

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1328151.2109
Module start 'layout' 0.00590.0027 739.343836.6641
Module start 'content' 0.00860.0038 776.007894.1563
Module end 'content' 0.01240.0012 870.164137.9922
Script end 0.0136  908.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.8225140.0002
Check MTime0.00107.5131140.0001
Mysql Total
Database connection0.001410.218010.0014
Mysqli_queries0.002417.350930.0008
Looping result0.00000.123810.0000
Template Total0.00107.010.0010
Template load0.00085.530210.0008
Template processing0.00021.447510.0002
Override
Cache load0.00053.876910.0005
General
dbfile0.00021.665580.0000
String conversion0.00000.061040.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