Size upload image

Author Message

Jonathan Clavier

Wednesday 27 April 2011 2:39:12 am

Hi,

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

Heath

Wednesday 27 April 2011 6:09:07 am

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

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Xavier Serna

Wednesday 27 April 2011 6:34:51 am

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.

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Jonathan Clavier

Wednesday 27 April 2011 7:26:57 am

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.

Heath

Wednesday 27 April 2011 10:01:14 am

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

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jonathan Clavier

Thursday 28 April 2011 2: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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.