I have an HTML form for authorised users to upload photographs and am having problems with file size. I have my test server restricted to 2m filesize upload and am trying to add something to tell my users if they go above this.
I have tried using a hidden field in my form like this:
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
When I try to upload larger files I do not get an error and on checking, the uploaded file size is 0.
How do I give an error message telling my user to reduce the file size?