I've got the following php in codeigniter:
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '4000';
$config['max_width'] = '3000';
$config['max_height'] = '3000';
$this->load->library('upload', $config);
$image_data = $this->upload->do_upload();
However, when the file is uploaded, $image_data['file_path'] returns as /home/public_html/sitename/uploads. I need it to go to www.domain.com/uploads. Any thoughts on why this may be happening?
I'd prefer to not have to hardcode a str replace in there. Hope this isn't a duplicate.