0

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.

pirho
  • 11,565
  • 12
  • 43
  • 70

1 Answers1

-1

You have to change $config['max_size'] = '0'; to any other size like $config['max_size'] = '100';

user10
  • 1
  • 1