Welcome Guest, Not a member yet? Register   Sign In
File upload - file size problem
#1

[eluser]Maxat[/eluser]
Hi,

I need a help with file upload size. Currently I can upload small size files, but when it comes to 5mb or more it doesn't upload anything. Can you please advise what can be done to fix this, cause i have already tried to change php.ini. Didnt help. Below my configurations.

Controller:
Code:
$config['upload_path'] = './reports/';
  $config['allowed_types'] = 'gif|jpg|png|pdf|doc|docx|bmp';
  $config['max_size'] = '0';
  $this->load->library('upload', $config);
  $this->upload->do_upload();

PHP.ini

Code:
; Maximum file size of post data that PHP will accept.
post_max_size = 200M

; Maximum allowed file size for uploaded files.
upload_max_filesize = 200M
#2

[eluser]Aken[/eluser]
Did you restart your server after making changes to your php.ini file? Most servers require some sort of reinitialization after making those changes, and it can often be overlooked.
#3

[eluser]Maxat[/eluser]
yes, i restarted every time
#4

[eluser]Maxat[/eluser]
Already fixed. Had a problem in php.ini file.




Theme © iAndrew 2016 - Forum software by © MyBB