php $_FILES array shorter than expected and max_file_uploads sillyness

Recently I had a strange error with a large form that uploaded multiple images to a server. The problem was that not all of the images made it to the server. Strange, I thought, so I did all the usual file permission checks, max upload size etc and everything was as it should be.

It took me a while of digging around to discover that the problem is a php ini directive called “max_file_uploads”. Naturally I tried changing this in my .htaccess file and also using good ol’ ini_set(‘max_file_uploads’). Unfortunately as this bug report states, it can only be changed in the ini file of the php install. Very frustrating.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>