Welcome Guest, Not a member yet? Register   Sign In
upload_path problem
#1

[eluser]Unknown[/eluser]
Code:
$config = array(
    'allowed_types' => 'jpg|jpeg|gif|png',
    'upload_path' => './theme/img/produkty/',
    'file_name' => $newName
);
        
$this->load->library('upload', $config);
if(!$this->upload->do_upload('zdjecie')) {
    $error = array('error' => $this->upload->display_errors());
    print_r($error);
}
        
$image_data = $this->upload->data();

print_r($image_data);

that's part of my code. and that's what I get:

Quote:Array ( [error] =>

The upload destination folder does not appear to be writable.
) Array ( [file_name] => 1310725368.jpg [file_type] => [file_path] => /home/majestic/public_html/choco/theme/img/produkty [full_path] => /home/majestic/public_html/choco/theme/img/produkty1310725368.jpg [raw_name] => 1310725368.jpg [orig_name] => [client_name] => [file_ext] => [file_size] => [is_image] => [image_width] => [image_height] => [image_type] => [image_size_str] => )

what bothers me is full_path, which I guess is the reason of my problem - file isn't uploaded

why the last / from upload path disappears? and how can I fix it?


Messages In This Thread
upload_path problem - by El Forum - 07-15-2011, 04:38 AM
upload_path problem - by El Forum - 07-16-2011, 10:07 PM
upload_path problem - by El Forum - 07-16-2011, 11:39 PM
upload_path problem - by El Forum - 07-17-2011, 02:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB