python Code
import requests
url = "http://xxxx.cn/file"
files = {"file":open("demo.png", "rb")}
r = requests.post(url, files=files)
print(r.text)
php Code
<?php
public function upload(Request $request)
{
$file = $request->file("file");
Log::info(json_encode($file));
}
?>
returned data
local.INFO: {}
ask the Great God for an answer?