CodeIgniter Forums
set minimum upload size in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: set minimum upload size in codeigniter (/showthread.php?tid=87113)



set minimum upload size in codeigniter - WilnarMasonmg - 03-15-2023

How can I set minimum width and height for image uploads in CodeIgniter? Here's the code I'm using:
$config['max_width'] = '480';
$config['max_height'] = '270';
$this->upload->do_upload();

I've successfully set the maximum dimensions, but I'm unsure how to set a minimum.