curl -F img=@/c/0037.png -F xxx=@/c/frl.gif http://127.0.0.1:1259/tests/upload.php, (*1)
curl -F xxx=@/c/q.png http://127.0.0.1:1259/tests/single.php, (*2)
upload test result:
array(3) {
["code"]=>
int(200)
["message"]=>
string(2) "OK"
["data"]=>
array(2) {
["succ"]=>
array(2) {
["img"]=>
string(33) "/uploads/user/201912291047594.png"
["xxx"]=>
string(33) "/uploads/user/201912291047595.gif"
}
["fail"]=>
array(0) {
}
}
}
single test result:
bool(true)
string(55) "E:\github\upload\tests/uploads\user\201912291052388.png"
int(5738)
string(33) "/uploads/user/201912291052388.png"
not allow test result:
bool(false)
string(38) "regedit.exe文件类型不允许上传"