php - When uploading files asynchronously, why is tp5 $request->file(); unable to get the value?
phpcn_u1582
phpcn_u1582 2017-07-04 13:46:16
0
1
1150

1. When I use fileinput for asynchronous upload, I submit it to the background through routing.

2.Routing

3.Background reception

4. Problem
Return [1,{}]
Cannot get the value
5.1 Supplement
If you use $_FILES['cover']; here, you can get the value
5.2 Supplement
If the form is submitted, the value can be obtained
6. Please clarify the confusion! Grateful!

phpcn_u1582
phpcn_u1582

reply all (1)
阿神

$_FILES contains a value, that means there is a problem with the file method of tp.
Look at the source code of the file method and trace it.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!