File upload not working - 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: File upload not working (/showthread.php?tid=18602) |
File upload not working - El Forum - 05-12-2009 [eluser]learning_php[/eluser] Hi, i had an image upload function working on my localhost but when i put in on the server it gives me a error: Code: The upload path does not appear to be valid. controller Code: function upload() view Code: <!DOCTYPE HTML> File upload not working - El Forum - 05-12-2009 [eluser]Dam1an[/eluser] I'm assuming the directory obviously exists Have you changed the file permissions to be writeable? File upload not working - El Forum - 05-12-2009 [eluser]learning_php[/eluser] Hi, yea it there as i can see the contents of it if i go to www.wesayido.co.uk/uploadsand on the server it has a permission number of 0755 and when i click and go to file permissions all teh boxs are ticked. File upload not working - El Forum - 05-12-2009 [eluser]Dam1an[/eluser] So only the owner has write permission to the folder It could be that on the production server, apache is being run under a diferant user group, therefore doesn;t have permission Try changing it to 777 File upload not working - El Forum - 05-12-2009 [eluser]learning_php[/eluser] Hi, I have changed the permissions to 777 but i get the same error File upload not working - El Forum - 05-12-2009 [eluser]Dam1an[/eluser] Try here, here and here Hope they help File upload not working - El Forum - 05-12-2009 [eluser]tomcode[/eluser] Try Code: $config['upload_path'] = './uploads/'; File upload not working - El Forum - 05-12-2009 [eluser]learning_php[/eluser] Hi, ./uploads works on my localhost my not on the live server? I changed the contoller to the following but i still get the same error Code: function upload() File upload not working - El Forum - 05-12-2009 [eluser]learning_php[/eluser] HI, if i change it to this Code: $config['upload_path'] = realpath((BASEPATH.'/images/')); Code: The upload destination folder does not appear to be writable. File upload not working - El Forum - 03-30-2010 [eluser]nicholas.byfleet[/eluser] is your .htaccess file messing things up? just brainstorming here. |