Easily validate max file size based on your settings in php.ini
– tonymasek.com - submitted by Tony Masek
In several projects, I've noticed that it can be useful to validate max filesize against the `upload_max_filesize` in php.ini. Let's take a look at how to write a validation rule to achieve this.
Read more [tonymasek.com]