how can i change max_file_uploads? [duplicate]

2020-03-18 07:21发布

Possible Duplicate:
PHP see only 20 uploading files at a time

I tried changing it in php.ini development and production. but still I am unable to upload files more than 20 at the same time. I have checked current setting using phpinfo(); but still showing max_file_uploads is 20 not showing changed value in php.ini.

2条回答
爱情/是我丢掉的垃圾
2楼-- · 2020-03-18 07:50

You have to change the values in php.ini file.Your php.ini file is in xampp\php\php.ini

You have to change both these values to be able to upload bigger files,

Example to change it into 100Mb set :

upload_max_filesize = 100M
post_max_size = 100M

Note: After you edit your php.ini file restart xampp or apache server to see the difference.

查看更多
欢心
3楼-- · 2020-03-18 07:54

You can set it with init_set() in your php file-

ini_set('max_file_uploads', 50);

OR you can try with .htaccess file. Put below line in your htaccess file.

php_value upload_max_filesize 10M
查看更多
登录 后发表回答