CodeIgniter Forums
Need "min_dims" validation rule - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: Need "min_dims" validation rule (/thread-79421.html)



Need "min_dims" validation rule - MrWhite - 06-13-2021

Under image upload validation rules, we dont have validation rule to check minimum height and width of uploading images. We only have "max_dims". Its great we can have a rule like min_dims.


RE: Need "min_dims" validation rule - MGatner - 06-17-2021

Sounds like a great feature for your first contribution Smile


RE: Need "min_dims" validation rule - JLDR - 08-16-2021

I have implemented the rule you are requesting and made already a pull request on GitHub:
https://github.com/codeigniter4/CodeIgniter4/pull/5003

Tested and working, following the same structure of max_dims function and error message.