Welcome Guest, Not a member yet? Register   Sign In
i can`t upload file to server
#5

[eluser]minhbu[/eluser]
this is my code.
Quote:$path='./uploads/';
if(!is_dir($path))
mkdir($path);
$config['upload_path'] = $path;
$config['allowed_types'] = 'gif|jpg|png|bmp';
$config['max_size'] = '10000';
$config['max_width'] = '1024';
$config['max_height'] = '768';

$this->load->library('upload', $config);
if(!$this->upload->do_upload())
echo $this->upload->display_errors();
My link http://localhost/code/index.php/upload/
my root C:\AppServ\www\code
In dir Code directory
i created uploads directory
But this code displayed errors
The upload path does not appear to be valid.
I don`t know why ?
Please help me !


Messages In This Thread
i can`t upload file to server - by El Forum - 09-15-2008, 10:43 PM
i can`t upload file to server - by El Forum - 09-16-2008, 10:47 AM
i can`t upload file to server - by El Forum - 09-24-2008, 01:48 AM
i can`t upload file to server - by El Forum - 09-24-2008, 02:42 AM
i can`t upload file to server - by El Forum - 09-24-2008, 08:19 PM
i can`t upload file to server - by El Forum - 09-24-2008, 09:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB