PhotoPressPro Platinum2 v4 released, outsmarts inane PHP setting with jQuery Image

PhotoPressPro Platinum2 v4 released, outsmarts inane PHP setting with jQuery

January 28, 2011

Hello again folks! Back so soon, you ask? Yes, yes, well.. we thought a few of you might want to upload images again.

Many of you reported issues with uploading images.. no error message, everything looked fine, but the image just didn’t upload. But then, most of you had no problems at all.

It turns out that a security setting was added to PHP versions 5.2.12 and later called max_file_uploads. This setting is defaulted to 20, to guard against bots attempting to overload the server with uploads.

Ok, well, we’re only uploading 1 file at a time, right? So, no problem. Right?


PHP counts empty file upload fields as uploads. This means on servers with default PHP settings, a web app cannot allow more that 20 file input fields in one form. We have a few more than that.

Fortunately, my years of rigorous Google Fu training placed me at this blog post by a similarly frustrated Drew McLellan. He offered up a nifty jQuery-based workaround that keeps any empty file input fields from getting to the PHP side by disabling them.

Thank you so much, Drew. Now I can enjoy my birthday.


  • JohnV · Posted March 23, 2011 at 7:39 pm · Link

    Testing Comments!

  • Alison Waring · Posted January 28, 2011 at 10:29 am · Link

    Happy Birthday old fart!!

    • admin · Posted February 4, 2011 at 9:20 am · Link

      Thanks Alison! :)

  • About PhotoPressPro

    PhotoPressPro is a WordPress theme built with photographers in mind, who have a specific vision for their blog. PhotoPressPro's exclusive Control Panel is so functional and flexible, you can easily build your own minimalist one-a-day photoblog, fun family preview blog, wedding showcase blog, or any type of blog you can dream up. Get more information on each package below.
  • Themes & Packages