-3

How to fix max_file_uploads Limit increase in Our hosted domain

How to fix max_file_uploads Limit increase with php

Htaccess is not working also

Amit Kanala
  • 121
  • 1
  • 12
  • 4
    Possible duplicate of [PHP see only 20 uploading files at a time](http://stackoverflow.com/questions/6083179/php-see-only-20-uploading-files-at-a-time) – apokryfos Oct 28 '16 at 08:26

3 Answers3

3

If you can not access php.ini file then you can try this on PHP code,

<?php
ini_set('max_file_uploads', '50');
?>

Or if you can access php.ini file then search max_file_uploads and change the default value,

max_file_uploads=50

Another option is create a .htaccess file on your root folder(project folder) then add,

php_value max_file_uploads 50
Mak
  • 2,765
  • 7
  • 31
  • 56
2

to update the limit you have to edit hosted domain php.ini file and

find below lines in php.ini file.

; Maximum number of files that can be uploaded via a single request max_file_uploads=20(default) => change it as per you requierment.

max_file_uploads=20 (it is default limit ) => change it as per you requierment.

Soni Vimalkumar
  • 1,368
  • 13
  • 25
0

Only Use .htaccess not any php.ini & init_set

php_value max_file_uploads 50