CodeIgniter Forums
validation for file control - 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: validation for file control (/thread-8700.html)



validation for file control - El Forum - 05-28-2008

[eluser]PHPraja[/eluser]
can any one tell me how i can apply validation for
Code:
<input type="file" name="FilePath" size="20" />

if nothing is browsed into it and is submited , then CI validation has to say 'please select something'.

thanks in advance.