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



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 !