This photo is too large (max is 10M bytes)

smirking

Joined: 2006-05-10
Posts: 14
Posted: Thu, 2012-11-01 22:02

I've seen different versions of a bug that results in this error message when you're trying to upload images to Gallery3.

The error message is something like this:
This photo is too large (max is 10M bytes)

The actual max size will vary from install to install, but that's not the point. The problem is that this error message is vague at best an invalid at worst. In my case, it had nothing to do with the real problem.

If you've already done the due diligence of checking to make sure that your php.ini settings are provisioned generously enough for you to upload the file you're trying to upload, then the issue could be something entirely different.

In my case it was the Apache security module Mod Security 2. The Uploader ran afoul of one of the rules in my instance and I had to look in the Apache error logs for the site to find the ID number of the rule to bypass.

I just thought I'd share this in case anyone else is running into this issue and has run into a dead-end in trying to fix it.

 
nogero

Joined: 2013-07-19
Posts: 2
Posted: Thu, 2013-08-29 19:26

I am receiving this error trying to upload files even though I set every parameter on the trouble-shooting wiki page, http://codex.galleryproject.org/Gallery3:Troubleshooting:Uploading . I now have set my size limit to 200mb but no help.

I've looked at the Apache logs but no obvious error messages.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2013-08-29 21:28

It could be a host setting that is over-ridding all the other settings. Do small images work?
If they do use a different upload method, like server add.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team