• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change limitation upload file size

Hello, I have a question.

Where should I put my php.ini on CodeIgniter4?
I've tried on the folder: public

Here is my code:

memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M
I also tried this on my .htaccess (in public).

But none of them work

There is a php.ini in the php folder that's where those are found.

The sizes should all match, outside of menory_limit.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Some PHP settings can be dynamically changed using ini_set("..., "...");


Settings can be viewed using ini_get(...);

Beware when updating the system that php.ini vales are reset to their defaults.

From the command line to find where the PHP.ini is located and PHP version:

php --ini

php -v

And phpinfo.php for more information.

Hello, I had to modify my PHP config (on my VPS) to unblock the limit. Because via htaccess, or php.ini, or even ini_set(), it was never working.

Try the following search:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.