in the html form, we have MAX_FILE_SIZE set up. In php.ini, we also have the upload_max_filesize set up too.
For example, if our upload_max_filesize set up is 4 MB. But for most of the application, we set up MAX_FILE_SIZE as 2 MB. How do you prevent user change the MAX_FILE_SIZE to 4 MB, and uploate the file 4 MB big?
So additional php script may be needed here to check at the server site, if the uploaded file is bigger than 2 MB here (we will know it is due to the client cheat the html form value), we will remove the uploaded file.
Any one run into the same situations before, could you share your apporaches or your scripts to handle this?
Thanks!