Skip to main content

File

Every file type has basic information about the file itself that is presented in bellow data structure.

KeyTypeDescription
namestringFile name with extension
hashstringsha256 hash of the file
sizeintSize in bytes
urlstringPath
typestringFile type
storagestringStorage provider that is used

Example

{
"name": "example_image.png",
"hash": "a1b2c3d4e5f6g7h8i9j2",
"size": 20000000,
"url": "https://example.com/images/example_image.png",
"type": "PNG",
"storage": "AWS"
}