Server response after the file is uploaded to the directory (Load a file to a directory)
Methods
- POST — Load a file to a directory
Resource
{
"error": "string",
"file": {
"__createdAt": "date-time",
"__createdBy": "uuid",
"__deletedAt": "date-time",
"__id": "uuid",
"__updatedAt": "date-time",
"__updatedBy": "uuid",
"comment": "string",
"directory": "uuid",
"name": "string",
"originalName": "string",
"size": "int64",
"version": "int32"
},
"success": "boolean"
}
Properties
Name | Type | Description | Additional |
---|---|---|---|
error | string |
Error message if |
Optional |
file | object |
File |
Optional |
file.__createdAt | date-time |
Created on |
Optional |
file.__createdBy | uuid |
Creator ID |
Optional |
file.__deletedAt | date-time |
Deleted |
Optional |
file.__id | uuid |
ID |
Optional |
file.__updatedAt | date-time |
Last edited |
Optional |
file.__updatedBy | uuid |
Editor ID |
Optional |
file.comment | string |
Comment |
Optional |
file.directory | uuid |
Directory ID |
Optional |
file.name | string |
File name in the system |
Optional |
file.originalName | string |
Uploaded file name |
Optional |
file.size | int64 |
Size |
Optional |
file.version | int32 |
File version |
Optional |
success | boolean |
Successful request flag |
Optional |