check if input file is set codeigniter code example Example: check if input file is set codeigniter if (empty($_FILES['userfile']['name'])) { }