I would like to create file upload with some fields for title and summary of upload file. I have also looked at this question, but I don’t understand it completly.
function someform()
{
// some variables for fields
($this->form_validation->run() == FALSE)
{
}
else
{
// how to check if the file was uploaded?
}
}
You should check validation for all the other fields other than the file upload. After the validation succeeds there, check the files. Example: