I'm using CodeIgniter 2.1.4 with Malsup jQuery Form Plugin. I need a page where a user can select an image file from their local drive, enter a name for the image then click submit to have the image uploaded and the details inserted into a database. This should happen through ajax without the page reloading. My own attempts are giving the error 'You did not select a file to upload' when the form is submitted. I've been told that js cannot access files on the local drive but that Malsup has a way to allow what I need. The documentation for Malsup concerning file upload appears to be very limited. I've included the file '[url removed, login to view]' which is the Controller and '[url removed, login to view]' which is the View page. I've also included the config and routes files. If other details are required please let me know.
The project is to make this image submit page work as stated above.