An interface for referencing file attachements.
Files attached to drops are referenced using FileReference objects.
Property | Type | Description |
---|---|---|
id* | string | A universally unique ID. |
type* | string | The file media type. |
name* | string | The file name. |
size* | number | The file size in bytes. |
dimensions | ImageDimensions | Dimensions 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.
Property | Type | Description |
---|---|---|
id* | string | A universally unique ID. |
type* | string | The file media type. |
name* | string | The file name. |
size* | number | The file size in bytes. |
dimensions* | ImageDimensions | Dimensions and aspect ratio of the image. Only set if the file is an image. See below for details. |
Property | Type | Description |
---|---|---|
width* | number | The image width. |
height* | number | The image height. |
aspectRatio* | number | The image aspect ratio (width/height). |
An object containing { [fileId]: FileReference }
fields.
Record<string, FileReference>