From 6f39d54d87d0fc0e455dbe7bda5692485f583daa Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Wed, 7 Sep 2011 14:20:20 +0200 Subject: [PATCH] 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. --- application/controllers/trials.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/trials.php b/application/controllers/trials.php index 4541e5e..8499fa9 100644 --- a/application/controllers/trials.php +++ b/application/controllers/trials.php @@ -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);