【发布时间】:2021-07-22 17:19:00
【问题描述】:
我正在使用如下 API 请求更新数据。
$response = Http::withToken(Session::get('SesTok'))->post('https://sometext/profile-update', [
"first_name" => $request->first_name,
"last_name" => $request->last_name,
"email" => $request->profile_email,
]);
现在我需要使用 API 请求上传 文件。我可以使用$request->file('logo') 获取文件详细信息。
如何通过 API 上传文件?
【问题讨论】: