CodeIgniter Forums
Upload files problem on windows machine - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Upload files problem on windows machine (/showthread.php?tid=54087)



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?