[eluser]pulok[/eluser]
How can I check if user has selected any file to upload (before calling the $this->upload->do_upload() in my controller)? This is needed because there are other input fields along with a file upload field which is optional. Basically what I want to do is:
Code:
if ( user_chose_any_file_to_upload ){
// try to upload file
if ( ! $this->upload->do_upload()){
blah.. blah.. blah..
}
}