CodeIgniter Forums
how set a min-size (width) in upload image? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: how set a min-size (width) in upload image? (/thread-18984.html)



how set a min-size (width) in upload image? - El Forum - 05-24-2009

[eluser]Asinox[/eluser]
Hi Guy's, there's some way to set a min-width for uploading image?

some help?

thanks a lot Smile


how set a min-size (width) in upload image? - El Forum - 05-24-2009

[eluser]Dam1an[/eluser]
Its not built in, but you have 2 options
1. Upoad the file, and then you have access to the file dimensions, so you can check if they're greater then the min
2. Extend the upload class, and add the check to is_allowe_dimensions (line 662)


how set a min-size (width) in upload image? - El Forum - 05-24-2009

[eluser]Asinox[/eluser]
mmmm thanks let me try upload class, i think is very nice idea Smile