PHP max file limit

旧街凉风 提交于 2020-01-15 11:38:06

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/9339759/php-max-file-limit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!