说明: 支持上传xlsx,docx,pdf文件
请求方式 | 请求地址 |
POST | https://api.helplook.net/api/content/upload-file |
Content-Type | multipart/form-data |
body类型: multipart/form-data
参数名 | 类型 | 必填 | 说明 |
file | file | 是 | 本地文件 |
apifox示例:

CURL示例:
curl --location --request POST 'https://api.helplook.net/api/content/upload-file' \
--header 'x-api-key: API KEY' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------638336393193687122714682' \
--form 'file=@"/xxx/xx/123.docx"'
响应:
{
"data": {
"name": "123.docx",
"parent_id": "0",
"slug": "8IYONJb0",
"id": "8164700",
"auth_type": "2"
},
"msg": "Success",
"code": 200
}