Fix erroneous max_size setting in trial upload and set it to 64m
The php.ini contains a value like "512M" which is not parseable by CodeIgniter's upload-library which only accepts kilobyte values.
This commit is contained in:
@@ -68,7 +68,7 @@ class Trials extends CI_Controller {
|
||||
$config = array(
|
||||
'upload_path' => '/tmp',
|
||||
'allowed_types' => '*',
|
||||
'max_size' => ini_get('upload_max_filesize'),
|
||||
'max_size' => 64*1024, // set maximum file size to 64 megabytes
|
||||
'file_name' => 'default',
|
||||
);
|
||||
$this->upload->initialize($config);
|
||||
|
||||
Reference in New Issue
Block a user