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:
Karsten Heiken
2011-09-07 14:20:20 +02:00
parent 4905182a4b
commit 6f39d54d87

View File

@@ -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);