CodeIgniter Forums
Max filesize issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Max filesize issue (/showthread.php?tid=62510)



Max filesize issue - albertleao - 07-23-2015

This code worked for me in 2.x and doesn't seem to be working in 3.x.

PHP Code:
               $config['upload_path'] = '/var/www/cache';
 
               $config['allowed_types'] = '*';
 
               $config['encrypt_name'] = TRUE;
 
               $config['max_size'    '0';
 
               $config['max_width' '0';
 
               $config['max_height' '0';
 
               $config['max_filename'] = '0';
 
               $this->load->library('upload'$config);
 
               if($this->upload->do_upload()) {
                } else {
                     
print_r($this->upload->display_errors());
                } 

I keep getting the following error:
  • The file you are attempting to upload is larger than the permitted size.
According to my phpinfo my upload_max_filesize is 50m and my post_max_size is 50m


any ideas?



RE: Max filesize issue - ranjithsiji - 07-23-2015

May be the problem with the httpd configuration. Security module of the http. Try specify file size
[file_size] => 22.2


RE: Max filesize issue - Narf - 07-23-2015

https://github.com/bcit-ci/CodeIgniter/commit/1a8d95a8861eabebb5ce5c01beb9110624400428


RE: Max filesize issue - albertleao - 07-23-2015

(07-23-2015, 01:36 AM)Narf Wrote: https://github.com/bcit-ci/CodeIgniter/commit/1a8d95a8861eabebb5ce5c01beb9110624400428

Thank you very much Narf.