title: Check if a file is going to be uploaded? CodeIgniter
body: <p>I have a form with few inputs and a file input. 
  I want to check whethere the file input is empty or not.
  If it is empty do not try to upload, if it is not then try to upload it.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>$upld_file = $this-&gt;upload-&gt;data();
      if(!empty($upld_file)) 
      {
      //Upload file
      }
  </code></pre>