The problem is that I want to check if the file is too large to upload so that I can display a relevant error message, but when the file is larger than upload_max_filesize in php.ini it seems to be only displaying a 0.
Why is this happening? How can I test that the file is too large to give a relevant error?