1
0
Fork 0

Correct the accepted files list.

This commit is contained in:
Andrew Tomaka 2011-11-05 12:59:14 -04:00
parent 28f664e6eb
commit 7872cabd90
1 changed files with 1 additions and 2 deletions

View File

@ -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')) {