Upload
Each media object you upload to the Media Area of your DatoCMS project is represented as an upload entity.
Object payload
RFC 4122 UUID of upload expressed in URL-safe base64 format
"q0VNpiNQSkG6z0lif_O1zg"
Must be exactly "upload".
size of the upload
444
Width of image
30
Height of image
30
Upload path
"/45/1496845848-digital-cats.jpg"
Upload basename
"digital-cats"
Upload filename
"digital-cats.jpg"
Upload URL
"https://www.datocms-assets.com/45/1496845848-digital-cats.jpg"
Format
"jpg"
Author
"Mark Smith"
Copyright
"2020 DatoCMS"
Notes
"Nyan the cat"
The MD5 hash of the asset
"873c296d0f2b7ee569f2d7ddaebc0d33"
Seconds of duration for the video
62
Frame rate (FPS) for the video
30
Blurhash for the asset
"LEHV6nWB2yk8pyo0adR*.7kCMdnj"
Base64 encoded ThumbHash for the asset
"UhqCDQIkrHOfVG8wBa2v39z7CXeqZWFLdg=="
Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
"a1B2c3D4e5F6g7H8i9"
Maximum quality of MP4 rendition available
"high"
Per-asset default metadata applied when no record-level overrides are present. alt, title, and custom_data are objects keyed by locale; focal_point (image assets) and poster_time (video assets) are a single value per asset. See non-localized focal points for more info.
{
alt: { en: "this is the default alternate text" },
title: { en: "this is the default title" },
custom_data: { en: { foo: "bar" } },
focal_point: { x: 0.5, y: 0.5 },
poster_time: 12.5,
}
Alternate text per locale
{ en: "Alternate text" }
Title per locale
{ en: "Title" }
Object with arbitrary metadata, per locale
{ en: { add_watermark: true } }
Focal point (only for image assets)
Horizontal position expressed as float between 0 and 1
0.5
Vertical position expressed as float between 0 and 1
0.5
Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
12.5
Is this upload an image?
Date of upload
Date of last update
Mime type of upload
"image/jpeg"
Tags
["cats"]
Smart tags
["robot-cats"]
Exif information
{
iso: 10000,
model: "ILCE-7",
flash_mode: 16,
focal_length: 35,
exposure_time: 0.0166667,
}
Dominant colors of the image
[
{ red: 206, green: 203, blue: 167, alpha: 255 },
{ red: 158, green: 163, blue: 93, alpha: 255 },
]
Red value (from 0 to 255)
115
Green value (from 0 to 255)
133
Blue value (from 0 to 255)
27
Alpha value (from 0 to 255)
255
Antivirus scan information
Antivirus scan status of the asset
"clean"
Date of the last antivirus scan
Name of the threat detected by the antivirus scan, if any
The entity (account/collaborator/access token) who created the asset
Upload collection to which the asset belongs