I am developing a website using Angular JS + Codeigniter.
The problem lies with image upload. The file names with space will not be uploaded (eg: "first image.jpg").
If we remove the space then it gets uploaded(eg:"firstimage.jpg"). This is my configuration.
$config = array(
'allowed_types' => 'jpg|jpeg|gif|png',
'max_size' => 2048, //2MB max
'upload_path' => $this->original_path,
'remove_spaces' => true
);
$this->load->library('upload', $config);