I searched for how to prevent server erros by upload file limit or memory limit exhausted. Unfortunately, each reply told me "edit your php.ini" or settings.php to raise those params. They worked, but as a community usage, image upload should have limitation for end users.

I need the image is uploaded via image.module, not upload.module.

The image size be limited (either MBs or width x height, ideally both) via image.module, similar to user avatars in upload.module. End users can upload image galleries freely, avoiding white page(server message) comes "Fatal error:.........................."

Comments

praseodym’s picture

Status: Active » Closed (won't fix)

This is impossible to fix because PHP handles the file and checks it with the size limit before image.module can do anything.