OK gang, let's see if anyone has an answer for something that's kinda stumping me at the moment.
I've got a form that allows upload of video files. I'm setting the MAX_FILE_SIZE parameter dynamically by reading the upload_max_filesize value from php.ini, which is set to 20M currently.
Now, when I upload a file of 19MB, my script to make sure it's the right filetype, rename it and save it works fine. However, when the file uploaded is over 20MB the check script doesn't return any feedback whatsoever, despite the error in exceeding the maximum upload filesize.
Apache shows a PHP error, but it seems to be happening out of the scope of the script. I've tried reading in the $_FILES['name']['error'] values but nothing shows when it exceeds the max size. I've played with the memory_limit value in php.ini, too but that doesn't seem to matter either.
Do I have to set my post_max_filesize (which is 21MB currently) to some ungodly high value to get my scripts to see that the upload exceeds the upload max??
TIA
I've got a form that allows upload of video files. I'm setting the MAX_FILE_SIZE parameter dynamically by reading the upload_max_filesize value from php.ini, which is set to 20M currently.
Now, when I upload a file of 19MB, my script to make sure it's the right filetype, rename it and save it works fine. However, when the file uploaded is over 20MB the check script doesn't return any feedback whatsoever, despite the error in exceeding the maximum upload filesize.
Apache shows a PHP error, but it seems to be happening out of the scope of the script. I've tried reading in the $_FILES['name']['error'] values but nothing shows when it exceeds the max size. I've played with the memory_limit value in php.ini, too but that doesn't seem to matter either.
Do I have to set my post_max_filesize (which is 21MB currently) to some ungodly high value to get my scripts to see that the upload exceeds the upload max??
TIA