Click to See Complete Forum and Search --> : uploading files issue (post_max_size)
Sid3335
09-09-2008, 09:50 AM
Hi guys
If i exceed the post_max_size, my whole form won't post.
So my question is: if i exceed the post_max_size how can i detect that occurance? since nothing has been posted i cannot check the $_FILES array.
Yep its a problem alright. No easy solution just workarounds. It's been submitted as a bug (http://bugs.php.net/bug.php?id=26004) numerous times but the good folks at PHP don't think it is. So here we are.
Check these man pages for more info (the user comments have a few suggestions).
http://www.php.net/manual/en/features.file-upload.php
http://us3.php.net/manual/en/ini.core.php#ini.post-max-size
The simplest solution is to raise the INI size to something improbably large and then check the file is not too big. A crap solution I know.
If you find something out post back here please!