[eluser]Unknown[/eluser]
I am having trouble with the CI upload library. My issue:
I have a form to create a new database entry creating data for categories. I have named the upload field everything from userfile (default) to "terrorists" and passed the value to do_upload() if it wasn't userfile. All other data is entered into the database appropriately, and no error message is displayed by the uploader, but the file is not uploaded, and $this->upload->data() returns nothing of value. I have tried forcing it to break by uploading an executable (should require image), and that won't even throw an error.
Things I have tried:
- Name the field differently (including "userfile")
- Check CHMOD on upload directory
- Uploading a file which does not fit allowed file types
- Uploading before or after validation (I know, why upload before ensuring valid data...)
- Checking view output (valid form, multipart, etc.)
- Checking consistency of other data submitted with form
Does anyone have any suggestions?
Note: I am using the form helper functions and passing the field information to the view to build the form.