05-13-2008, 06:45 AM
[eluser]Sumon[/eluser]
Here is my code
This code works fine in my localhost / local PC but not working in server. No image uploaded as well i am not getting any working. Moreover, folder path are absolutely same for local and server.
Here is my code
Code:
if(basename($_FILES['filePhoto']['name'])!="")
{
$config['upload_path'] = './gallery/member_picture/';
$config['allowed_types'] = 'gif|jpg|jpeg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
$FileFieldName="filePhoto";
$this->upload->do_upload($FileFieldName);
}
This code works fine in my localhost / local PC but not working in server. No image uploaded as well i am not getting any working. Moreover, folder path are absolutely same for local and server.