Upload Model issues. |
I am creating an upload script for my signed in users.
Libraries included: form, upload and image_lib. From the controller I want to call upon the add image function, from the user model. From the user model I want it to attempt to upload the file using the upload model. And once the upload is complete I want the user model to create the thumbnails and add to database. I get a dreaded The upload path does not appear to be valid. every single time. I know the path works as I wrote echo $config['upload_path'] and copied the result in my browser and it took me to the directory. Could someone shed some light on why I always get the error? In my controller/profile.php I have: PHP Code: if($this->input->post()) In my models/user_model.php I have: PHP Code: function add_image() In my models/upload_model.php I have: PHP Code: function upload($config) |
Messages In This Thread |
Upload Model issues. - by miiikkeyyyy - 03-01-2015, 01:00 PM
RE: Upload Model issues. - by mwhitney - 03-05-2015, 07:41 AM
|