When an uploads fails because of server limitations php does return an error which should help you to find the problem. try this instead:
$error_types = array(
1=>'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
–mgpepe Nov 23 '10 at 11:43 +1 good spot :) –karim79 Nov 23 '10 at 11:44 oh god. No idea, but that's the problem.
Am I using the correct syntax for ini_set? To find the number of X completed, when can I subtract two numbers and when do I have to count? Updated my form. But It seems my code isn't working as is either.