FileReference

An interface for referencing file attachements.

Files attached to drops are referenced using FileReference objects.

PropertyTypeDescription
id*stringA universally unique ID.
type*stringThe file media type.
name*stringThe file name.
size*numberThe file size in bytes.
dimensionsImageDimensionsDimensions and aspect ratio of the image. Only set if the file is an image. See below for details.

Identical to FileReference but dimensions are always present.

PropertyTypeDescription
id*stringA universally unique ID.
type*stringThe file media type.
name*stringThe file name.
size*numberThe file size in bytes.
dimensions*ImageDimensionsDimensions and aspect ratio of the image. Only set if the file is an image. See below for details.
PropertyTypeDescription
width*numberThe image width.
height*numberThe image height.
aspectRatio*numberThe image aspect ratio (width/height).

An object containing { [fileId]: FileReference } fields.

Record<string, FileReference>