eZ Community » Forums » Developer » Size upload image
expandshrink

Size upload image

Size upload image

Wednesday 27 April 2011 11:39:12 am - 7 replies

Hi,

I would like to reduce the size of upload images backend (<1 MB).
Someone has an idea?

Modified on Wednesday 27 April 2011 11:40:07 am by Jonathan Clavier

Wednesday 27 April 2011 3:09:07 pm

Hello,

Try editing the file content class in the admin.

It has a file attribute which provides the ability to set an uploaded file size limit.

re: /class/view/28

Cheers,

Heath

Wednesday 27 April 2011 3:34:51 pm

Every "ezimage" attribute has a "Max Size" value that can be set. Also, necessary adjustements in PHP configuration should be done (more info http://www.radinks.com/upload/config.php)

regards.

Wednesday 27 April 2011 4:26:57 pm

Thank you Heath, but with this method, I can not specify a size less than 1MB.
Xavier, with your method, I must specify the size of all files to upload.
I try to limit the size according to the chosen class and not for all.

This should be possible I think.

Wednesday 27 April 2011 7:01:14 pm

Hello Jonathan,

Then I would suggest creating a customized (as needed, re: file upload limit bellow 1mb) ezimage datatype.

This would cleanly allow for your custom needs.

Cheers,

Heath

Thursday 28 April 2011 11:11:45 am

Thank you, this answer, and seems very good.
That said, there no way to do this faster?
I find it a bit heavy this technique, just to change a size.
Is there a plugin or something equivalent?
Thank you in advance.

Tuesday 17 January 2012 4:28:57 pm

No reply to your question about a plugin....

That must mean none exist....

Tuesday 17 January 2012 5:00:07 pm

Hello Everyone,

 

I did not reply because the answer to my knowledge is a clear 'no'. No such extension exist publicly.

 

When you want to change PHP code rules in eZ Publish that do not already provide for the feature you require, then the answer most commonly is to override the PHP being used in question.

Within the bounds of the already described use case this would require a custom datatype which would allow you to change the PHP to meet your own unique needs.

 

@ Tony Veidellis 

Welcome to the eZ Community!

Thank you for reply to this thread and reminding me to share just a little bit more information and clarify in general. 

 

I hope this helps ...

 

Cheers,

Heath

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu