The problem of php receiving multiple files in the form of form-data

php receives multiple files in the form of form-data, which is required to be multiple files of the same key. The array received by $_ FILTER shows only the information of the first file:

clipboard.png

spring:

clipboard.png

how should php receive it, or can php just not do it?

Php
Mar.09,2021

key:file[]

Array
(
    [a] => Array
        (
            [name] => Array
                (
                    [0] => WX20180507-164412.png
                    [1] => 4271525682162_.pic_hd.jpg
                )

            [type] => Array
                (
                    [0] => image/png
                    [1] => image/jpeg
                )

            [tmp_name] => Array
                (
                    [0] => /private/var/folders/32/85t9_nfn3hl27vm4yxb89c8m0000gn/T/php0pf4YH
                    [1] => /private/var/folders/32/85t9_nfn3hl27vm4yxb89c8m0000gn/T/phpz83Uwi
                )

            [error] => Array
                (
                    [0] => 0
                    [1] => 0
                )

            [size] => Array
                (
                    [0] => 52048
                    [1] => 409694
                )

        )

)


Menu