I have a webApp in which I am trying to let user upload image.
My code in codeigniter
is :
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = '0';
$config['overwrite'] = TRUE;
$config['remove_spaces'] = TRUE;
$config['detect_mime'] = TRUE;
$config['mod_mime_fix'] = TRUE;
$this->load->library('upload', $config);
But it is showing error:
The uploaded file exceeds the maximum size allowed by the submission form.
But when I try to upload same file without using PHP in other webapp it is uploaded.