Correct the accepted files list.
This commit is contained in:
parent
28f664e6eb
commit
7872cabd90
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ class Upload extends CI_Controller {
|
|||
$config['file_name'] = 135;
|
||||
$config['max_size'] = 2048;
|
||||
$config['upload_path'] = './uploads/';
|
||||
// $config['allowed_types'] = 'gif|jpg|jpeg|png|bmp';
|
||||
$config['allowed_types'] = 'jpg';
|
||||
$config['allowed_types'] = 'gif|jpg|jpeg|png|bmp';
|
||||
$this->load->library('upload', $config);
|
||||
|
||||
if (!$this->upload->do_upload('image')) {
|
||||
|
|
Loading…
Reference in a new issue