Properties
NAME | TYPE | DESCRIPTION |
$id | string | File ID. |
bucketId | string | Bucket ID. |
$createdAt | integer | File creation date in Unix timestamp. |
$updatedAt | integer | File update date in Unix timestamp. |
$read | array | File read permissions. |
$write | array | File write permissions. |
name | string | File name. |
signature | string | File MD5 signature. |
mimeType | string | File mime type. |
sizeOriginal | integer | File original size in bytes. |
chunksTotal | integer | Total number of chunks available |
chunksUploaded | integer | Total number of chunks uploaded |
Example
JSON
{
"$id": "5e5ea5c16897e",
"bucketId": "5e5ea5c16897e",
"$createdAt": 1592981250,
"$updatedAt": 1592981250,
"$read": "role:all",
"$write": "user:608f9da25e7e1",
"name": "Pink.png",
"signature": "5d529fd02b544198ae075bd57c1762bb",
"mimeType": "image/png",
"sizeOriginal": 17890,
"chunksTotal": 17890,
"chunksUploaded": 17890
}
JSON
{
"_id": "5e5ea5c16897e",
"bucketId": "5e5ea5c16897e",
"_createdAt": 1592981250,
"_updatedAt": 1592981250,
"_read": "role:all",
"_write": "user:608f9da25e7e1",
"name": "Pink.png",
"signature": "5d529fd02b544198ae075bd57c1762bb",
"mimeType": "image/png",
"sizeOriginal": 17890,
"chunksTotal": 17890,
"chunksUploaded": 17890
}