Welcome Guest, Not a member yet? Register   Sign In
Max filesize issue
#1

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?
Reply
#2

May be the problem with the httpd configuration. Security module of the http. Try specify file size
[file_size] => 22.2
CI4 FAN - Codeigniter Performance Specialist.
Reply
Reply
#4

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

Thank you very much Narf.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB