Grigor
Grigor

Reputation: 4059

PHP max file limit

I have a file upload system which, in PHP, limits to 20 files at once, even though I select 25-30 files it only uploads 20. I would like to know why this problem exists and if there is a fix to this either from php.ini or from anywhere.

Upvotes: 1

Views: 3855

Answers (2)

dev-null-dweller
dev-null-dweller

Reputation: 29482

what version of PHP are you using? If there was no max_file_uploads inside your php.ini, you may be using old version that does not support this configuration directive, so adding it should not change anything.

Other thing that can limit number of files uploaded is suhosin.upload.max_uploads if your server is running with suhosin extension.

Upvotes: 0

Jaspreet Chahal
Jaspreet Chahal

Reputation: 2750

change max_file_uploads to whatever value you like in your php.ini. but beware of few gotchas

max_file_uploads counts empty upload fields as if they were being used

there is a good article on this that you should read

Upvotes: 1

Related Questions