CodeIgniter Forums
why is my upload path not valid ? - 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: why is my upload path not valid ? (/showthread.php?tid=47595)



why is my upload path not valid ? - El Forum - 12-14-2011

[eluser]vincej[/eluser]
Hi - I keep getting the same error:

"The upload path does not appear to be valid."

My tmp folder is underneath 'application'. I have tried adding 'application' to the path, but this made no difference. I'm making a newbie syntax mistake somewhere - but beats me where.

My upload path is specified as:

Code:
$config['upload_path'] = '/tmp/';
$config['allowed_types'] = 'csv';
$config['max_size'] = '2000';
$config['remove_spaces'] = true;
$config['overwrite'] = true;
$this->load->library('upload', $config);


Many thanks for all suggestions !