So, we allow a few uploads to our web service.
Avatars and such.
We set the maximum size of these file uploads to 8MB via php's upload_max_filesize.
This works great, except that if a user uploads a larger image, for example 15MB, an error will be dumped in our php log.
We want to avoid this.
So:
Is there anyway to set via HTML the maximum upload size of a file so uploads over our specified size are not even sent to our server and thus, the error showing in the log is avoided?
Here is the PHP error we are trying to avoid BTW:
PHP Warning: POST Content-Length of 11978117 bytes exceeds the limit of 8388608 bytes in Unknown on line 0