Attachment
Property | Type | Description | Optional |
---|---|---|---|
id | string | Unique identifier for the attachment. | ✅ |
name | string | Name of the attachment file. | ✅ |
url | string | URL to access the attachment. | ✅ |
type | string | Type of the attachment (e.g., image, video). | ✅ |
index | number | Index of the attachment in a list. | ✅ |
width | number | Width of the attachment (if applicable). | ✅ |
height | number | Height of the attachment (if applicable). | ✅ |
awsFolderPath | string | AWS folder path where the file is stored. | ✅ |
localFilePath | string | Local file path for the attachment. | ✅ |
thumbnailUrl | string | URL for the attachment’s thumbnail. | ✅ |
thumbnailAWSFolderPath | string | AWS folder path for the thumbnail. | ✅ |
thumbnailLocalFilePath | string | Local file path for the thumbnail. | ✅ |
meta | AttachmentMeta | Metadata related to the attachment. | ✅ |
createdAt | number | Timestamp when the attachment was created. | ✅ |
updatedAt | number | Timestamp when the attachment was last updated. | ✅ |
fileUrl | string | Direct URL to access the file. | ✅ |
AttachmentMeta
Property | Type | Description | Optional |
---|---|---|---|
numberOfPage | number | Number of pages in the attachment (if applicable). | ✅ |
size | number | Size of the attachment in bytes. | ✅ |
duration | number | Duration of the attachment (e.g., for videos). | ✅ |
answerId | number | Identifier related to an answer (if applicable). | ✅ |
createdAt | number | Timestamp when the attachment was created. | ✅ |
fileUrl | string | URL to access the attachment. | ✅ |
height | number | Height of the attachment (if applicable). | ✅ |
id | number | Unique identifier for the attachment meta. | ✅ |
index | number | Index of the attachment in a list. | ✅ |
meta | { size: number } | Nested metadata containing file size. | ✅ |
name | string | Name of the attachment. | ✅ |
thumbnailUrl | string | null | URL of the attachment’s thumbnail. | ✅ |
type | string | Type of the attachment (e.g., image, video). | ✅ |
width | number | Width of the attachment (if applicable). | ✅ |