时间:2021-07-01 10:21:17 帮助过:1人阅读
$data = array('file' => '@/tmp/test.txt');
$response = Requests::post(self::LOAD_URL, array(), $data);
这样使用总是报file empty,请问有人知道怎么上传文件么?
有没有人使用过PHP的Requests的POST方式上传过文件?
$data = array('file' => '@/tmp/test.txt');
$response = Requests::post(self::LOAD_URL, array(), $data);
这样使用总是报file empty,请问有人知道怎么上传文件么?
你可别逗了,Requests::post 你确定这是php自带的,这明明是自己写的类、