Upload File
POST/utility/api/1.0/wallet/files
Upload File
Request
Query Parameters
folderName stringrequired
- multipart/form-data
Body
file binary
Responses
- 200
File uploaded successfully
- application/json
- Schema
- Example (from schema)
- Success
- Error
Schema
code integer
message string
data object
fileId string
url string
{
"code": 0,
"message": "string",
"data": {
"fileId": "string",
"url": "string"
}
}
Successful response
{
"code": 0,
"message": "Success",
"data": {
"fileId": "1234567890abcdef",
"url": "https://storage.trential.dev/files/1234567890abcdef/test.png"
}
}
Error response
{
"code": -1,
"message": "Error message"
}
Loading...