Skip to content Skip to sidebar Skip to footer

Maximum Number Of Files Being Uploaded By Input Type File

Possible Duplicate: Max file number can php upload at same time I'm trying to upload multiple files using html and php Copy

LevSahakyan solved the problem.

He was using

for($i=0; $i<count($_FILES['upload']); $i++)

and because 'upload' is an array itself and has 5 parameters (name, type, tmp_name, error and size) it was uploading only 5 items. now he is using right parameter -

for($i=0; $i<count($_FILES['upload']['name']); $i++)

Solution 2:

You need to change these 2 parameters in php.ini file in order to allow this.

max_file_uploads = 20post_max_size = 256M

This will allow you to upload 20 files at the same time, and also increase the maximum allowance for the upload file size.

Post a Comment for "Maximum Number Of Files Being Uploaded By Input Type File"