CodeIgniter Forums
Upload files problem on windows machine - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Upload files problem on windows machine (/thread-54087.html)



Upload files problem on windows machine - El Forum - 08-22-2012

[eluser]Unknown[/eluser]
Hi,

I have a standard upload images form and it is uploading to my destination folder perfectly. However, when I created another controller/view to upload images again, then the do_upload() is not uploading to the destination path but to the root folder.

$config['upload_path'] = './user/images';

but the actual uploading is done in root(/) not the above folder. USER folder is made in the root. This is happenning in second controller on windows with xampp only.

When I use the first controller/view it uploads perfectly to the destination but alas in second controller/view it is not.

Has anybody faced this situation?