Types > UserFile
Storefront APITypesUserFile
UserFile

Description

Topic: Files

Fields

crc32: Int!

CRC32 checksum of the original file

Example: 34539485


created_at: String!

The date and time when the file was created, RFC 3339 format

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


image_alt: String!

Alt title of the image


image_color: String!

Average color of the image

Example: "#ffffff"


image_fallback: String!

Base64 miniature of the image suitable for inline rendering (webp file format)

Example: "UklGRrIFAABXRUJQVlA4IKYFAADQGACdASqAAC8AAMAUJYwDDaD295z4Jt/bwTtvB4uWTO7zj5N10H8J/GN679s+W/EU+Q/fL8zxezK/x/nvprchPozaLvrH2DTI2qUzsmTZ+wSHmKgrtkTks767dPgH+xctt/1jugOVBlJNqpxI"


image_height: Int!

Height of the image if file is an image

Example: 0


image_width: Int!

Width of the image if file is an image

Example: 0


md5: String!

MD5 hash of the original file

Example: "00f6f616227c8f68c76f4c01de026dbf"


mime: String!

MIME type of the file

Example: "plain/text"


name: String!

Human-friendly name of the file

Example: "abc.txt"


path: String!

Internal storage path of the file

Example: "userimage/us_EQzGqWoY"


public_url: String!

Publically available CDN URL of a file

Example: "https://cdn.lana.dev/userimage/us_EQzGqWoY"


size: Int!

Size of the file in bytes

Example: 0


user_id: String!

Unique user identifier this file belongs to

Example: "us_EQzGqWoY"


Used By

Types

StorefrontUser

Preview (typescript)

Loading module