curl 'http://xxxxxx' -F "theFile=/Users/xxxx/Downloads/1.jpg;filename=xxxx"
后台接收到的信息
var_dump($_FILE); /* array(1) { ["theFile"]=> array(6) { ["name"]=> string(7) "xxxx" ["tempName"]=> string(14) "/tmp/phpnk5HXI" ["tempResource"]=> array(0) { } ["type"]=> string(0) "" ["size"]=> int(36) ["error"]=> int(0) } } */