uploading files outside the root folder - 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: uploading files outside the root folder (/showthread.php?tid=40593) |
uploading files outside the root folder - El Forum - 04-13-2011 [eluser]ebuoe[/eluser] hello everyone ... below is a sample of code i use for uploading images to a gallery in my application ... just for improved secirity i decided that i should upload the files to another folder outside my root directory ... anoda folder in my www .... i specified the full file path to the directory where it should uploaad to but that is where the error started .... it did not work ... would appreciate it if sum1 helped me with this Code: if($this->form_validation->run()==FALSE) uploading files outside the root folder - El Forum - 04-13-2011 [eluser]fesweb[/eluser] Two basic things to check first: - echo $dir to make sure that it is actually the directory you intended. - does apache or php have permission to write files in that directory? uploading files outside the root folder - El Forum - 04-13-2011 [eluser]InsiteFX[/eluser] This has already be solved in another thread he posted twice in two different places! and the answer was Code: ../../ InsiteFX |