How can I change max_file_uploads?

Possible duplicate:
PHP views only 20 downloads at a time

I tried changing it in php.ini development and production. but still I can’t upload files over 20 at a time. I checked the current setting with phpinfo(); but still showing max_file_uploads is 20 without displaying the changed value in php.ini .

+4
source share
2 answers

You must change the values ​​in the php.ini . Your php.ini file is located in xampp\php\php.ini

You must change both of these values ​​to be able to upload large files,

Example to change it to 100 MB:

 upload_max_filesize = 100M post_max_size = 100M 

Note. After modifying the php.ini restart xampp or apache server to see the difference.

+2
source

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

 ini_set('max_file_uploads', 50); 

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

 php_value upload_max_filesize 10M 
0
source

All Articles