CodeIgniter - Combine form validation and file upload
<p>I would like to create file upload with some fields for title and summary of upload file. I have also looked at <a href="http://stackoverflow.com/questions/5177421/codeigniter-form-validation-and-file-upload-data">this</a> question, but I don't understand it completly.</p>

<pre><code>function someform()
{
   // some variables for fields
   ($this-&gt;form_validation-&gt;run() == FALSE)
   {

   }
   else
   {
      // how to check if the file was uploaded?
   }
}
</code></pre>
