Multiple image upload error when uploading more than 20 images or so
<p>I have a problem with multiple uploads on multiple fields.I have 3 file upload fields.when I upload ten in each. I am not getting some files.</p>
<h1>HTML Code</h1>
<pre><code>&lt;input type=&quot;file&quot; name=&quot;before[]&quot; multiple&gt;
&lt;input type=&quot;file&quot; name=&quot;during[]&quot; multiple&gt;
&lt;input type=&quot;file&quot; name=&quot;after[]&quot; multiple&gt;
</code></pre>
<p>when I print_r($_FILES); I get like the following output</p>
<pre><code>Array
(
    [before] =&gt; Array
        (
            [name] =&gt; Array
              (
                [0] =&gt; loose_diamond.jpg
                [1] =&gt; silver.jpg
                [2] =&gt; loose_diamond.jpg
                [3] =&gt; silver_ware.jpg
                [4] =&gt; diamond.jpg
                [5] =&gt; loose_diamond.jpg
                [6] =&gt; diamond.jpg
                [7] =&gt; loose_diamond.jpg
                [8] =&gt; diamond.jpg
                [9] =&gt; loose_diamond.jpg
              )

        [type] =&gt; Array
            (
                [0] =&gt; image/jpeg
                [1] =&gt; image/jpeg
                [2] =&gt; image/jpeg
                [3] =&gt; image/jpeg
                [4] =&gt; image/jpeg
                [5] =&gt; image/jpeg
                [6] =&gt; image/jpeg
                [7] =&gt; image/jpeg
                [8] =&gt; image/jpeg
                [9] =&gt; image/jpeg
            )

        [tmp_name] =&gt; Array
            (
                [0] =&gt; /tmp/phpr1CABT
                [1] =&gt; /tmp/phpEhK0Wk
                [2] =&gt; /tmp/phpVq54jM
                [3] =&gt; /tmp/phpan3pId
                [4] =&gt; /tmp/phplXVb0G
                [5] =&gt; /tmp/phpWWfyja
                [6] =&gt; /tmp/php5zLcZD
                [7] =&gt; /tmp/phpWZu4F7
                [8] =&gt; /tmp/phpHk8VzB
                [9] =&gt; /tmp/php4OQPI5
            )

        [error] =&gt; Array
            (
                [0] =&gt; 0
                [1] =&gt; 0
                [2] =&gt; 0
                [3] =&gt; 0
                [4] =&gt; 0
                [5] =&gt; 0
                [6] =&gt; 0
                [7] =&gt; 0
                [8] =&gt; 0
                [9] =&gt; 0
            )

        [size] =&gt; Array
            (
                [0] =&gt; 6450
                [1] =&gt; 6851
                [2] =&gt; 6450
                [3] =&gt; 7866
                [4] =&gt; 6372
                [5] =&gt; 6450
                [6] =&gt; 6372
                [7] =&gt; 6450
                [8] =&gt; 6372
                [9] =&gt; 6450
            )

    )

[during] =&gt; Array
    (
        [name] =&gt; Array
            (
                [0] =&gt; loose_diamond.jpg
                [1] =&gt; silver.jpg
                [2] =&gt; silver.jpg
                [3] =&gt; silver_ware.jpg
                [4] =&gt; silver_ware.jpg
                [5] =&gt; watch.jpg
                [6] =&gt; machinery.jpg
                [7] =&gt; conis.jpg
                [8] =&gt; silver_ware.jpg
                [9] =&gt; machinery.jpg
            )

        [type] =&gt; Array
            (
                [0] =&gt; image/jpeg
                [1] =&gt; image/jpeg
                [2] =&gt; image/jpeg
                [3] =&gt; image/jpeg
                [4] =&gt; image/jpeg
                [5] =&gt; image/jpeg
                [6] =&gt; image/jpeg
                [7] =&gt; image/jpeg
                [8] =&gt; image/jpeg
                [9] =&gt; image/jpeg
            )

        [tmp_name] =&gt; Array
            (
                [0] =&gt; /tmp/php3eBKVz
                [1] =&gt; /tmp/phpk0GxK4
                [2] =&gt; /tmp/phplPxWDz
                [3] =&gt; /tmp/php2J8Ry4
                [4] =&gt; /tmp/php5b8pwA
                [5] =&gt; /tmp/phpU1UvZ6
                [6] =&gt; /tmp/phpHP7zAD
                [7] =&gt; /tmp/phpKpfZwa
                [8] =&gt; /tmp/phpl9SHvH
                [9] =&gt; /tmp/php693Gbf
            )

        [error] =&gt; Array
            (
                [0] =&gt; 0
                [1] =&gt; 0
                [2] =&gt; 0
                [3] =&gt; 0
                [4] =&gt; 0
                [5] =&gt; 0
                [6] =&gt; 0
                [7] =&gt; 0
                [8] =&gt; 0
                [9] =&gt; 0
            )

        [size] =&gt; Array
            (
                [0] =&gt; 6450
                [1] =&gt; 6851
                [2] =&gt; 6851
                [3] =&gt; 7866
                [4] =&gt; 7866
                [5] =&gt; 8119
                [6] =&gt; 8173
                [7] =&gt; 8789
                [8] =&gt; 7866
                [9] =&gt; 8173
            )

    )

[images[]] =&gt; Array
    (
        [name] =&gt; machinery.jpg
        [type] =&gt; image/jpeg
        [tmp_name] =&gt; /tmp/php693Gbf
        [error] =&gt; 0
        [size] =&gt; 8173
    )

)
</code></pre>
<p><strong>Note:</strong> when I upload 5 images each it works fine.</p>