CodeIgniter Forums
The upload path does not appear to be 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: The upload path does not appear to be valid (/showthread.php?tid=9978)



The upload path does not appear to be valid - El Forum - 07-15-2008

[eluser]Mitja[/eluser]
After the night upload not working any more.
All the time i get error of The upload path does not appear to be valid.

Code:
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size']    = '100';
$config['max_width']  = '1024';
$config['max_height']  = '768';
        
$this->load->library('upload', $config);
$field_name = "title_photo";

folder uploads exist. I try everything but still get this error. I search but i did not find solution.

Quote:var_dump(is_dir('./uploads/'));
var_dump($_SERVER['SCRIPT_FILENAME']);

gives me

Quote:boolean true
string 'C:/HTTPSERVER/wwwroot/bewoop/index.php' (length=38)

so dir is readable.

Quote:$this->upload->initialize($config);

also not working.

Any idea why?


The upload path does not appear to be valid - El Forum - 07-15-2008

[eluser]Asinox[/eluser]
is only read?