I have a PHP form for uploading files, and it works fine and displays an error message if something went wrong. This is all good.
The problem is that when I test with a really large file, it just refreshes the page, as if I hadn’t sent the file at all, and not one of the $ _POST variables from the form was even sent to the server.
I want to show the user an error by telling them that the file is too large. However, I cannot do this.
Does anyone know what is going on?
source
share