Skip to main content
POST
/
api
/
file
/
upload
上传文件
curl --request POST \
  --url https://api.example.com/api/file/upload \
  --header 'Authentication: <authentication>' \
  --header 'Content-Type: multipart/form-data'
{
  "code": 200,
  "message": "操作成功",
  "result": "xxxx/yyyy/file1.xlsx",
  "success": true,
  "timestamp": 1679389339866
}

Headers

Authentication
string
default:{{token_1}}
required

Query Parameters

token
string
required

Body

multipart/form-data
file
file
required
Example:
[]

Response

200 - application/json
code
integer
required
message
string
required
result
string
required

文件相对路径

success
boolean
required
timestamp
integer
required