Class: Attachment

Attachment

new Attachment()

Properties:
Name Type Description
ds ApiDataSource

attachments datasource

isCover bool

is this the cover image of a document

canBeCover bool

can this attachment be the cover of a document?

Methods

getDownloadUrl(){string}

Gets the url where the attachment can be downloaded

getExt(fileName){string}

Gets the extension part of a filename

Name Type Description
fileName

getThumbnailUrl(size){string}

Gets the url of a thumbnail "XS": 32, "S": 64, "M": 128, "L": 256, "XL": 512 "orig": original size

Name Type Description
size

hasPreview(){boolean}

Checks if the attachment has a preview

isImage(){boolean}

Checks if the attachment is an image