Reputation: 339
When I check in phpinfo() in a browser, my max_file_uploads (images in my case) is set to 20, but I need to change that to a higher limit. Supposedly this is to be changed in the php.ini but I couldn't find anything that would relate to it.
Help please! Thanks a lot!!
edit: tried to add the line max_file_uploads = 100 since there was no such line in the php.ini, but it didn't do the trick. also the "100" is red, i don't know if that means something...
Upvotes: 1
Views: 788
Reputation: 11
If you are using Apache web server, here is a solution that does not require editing php.ini:
Create a .htaccess file if one does not exist already and add the following line to it.
php_value max_file_uploads 100
Where 100 is the maximum number of files allowed. You can change it to the desired integer value as per your requirement.
Upvotes: 1
Reputation: 339
Thanks to RiggsFolly and Jeff Puckett II I could make it work as follows:
If the line "max_file_uploads" is already in the php.ini but the number is insufficient, change the number and restart the web- or local server. done.
If the line "max_file_uploads" doesn't exist yet, just add it, restart the web- or local server. done.
Upvotes: 0