Upload File
POST
/file/uploadRequest
Header Params
Content-Type
string
required
Example:
multipart/form-data
accessToken
string
required
Example:
{{accessToken}}
Body Params application/json
file
object
optional
File to Upload
Example
{
"file": ""
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
uploadUserId
integer <int64>
optional
Upload User ID
fileName
string
optional
File Name
fileSize
integer <int64>
optional
File Size (bytes)
fileSuffix
string
optional
File Suffix
uploadUserName
string
optional
Upload User Name
fileKey
string
optional
File Key
originalUrl
string
optional
Original Url
uploadTime
string <date>
optional
Upload Time
fileType
string
optional
File Type
Example
{
"code": "0",
"data": {
"uploadUserId": 1,
"fileName": "xxx",
"fileSize": 1,
"fileSuffix": ".webp",
"uploadUserName": "xxx",
"fileKey": "xxx",
"originalUrl": "https://xxx.net",
"uploadTime": 1661167046919,
"fileType": "document"
}
}
Last modified: 6 months ago