File

Constructors

Properties

File access. Can be PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, PRIVATE.

archived: boolean

If the file is deleted.

archivedAt?: Date

Deletion time of the file object.

createdAt: Date

Creation time of the file object.

defaultHostingUrl?: string

Default hosting URL of the file. This will use one of HubSpot's provided URLs to serve the file.

encoding?: string

Encoding of the file.

expiresAt?: number
extension?: string

Extension of the file. ex: .jpg, .png, .gif, .pdf, etc.

height?: number

For image and video files, the height of the content.

id: string

File ID.

isUsableInContent?: boolean

Previously "archied". Indicates if the file should be used when creating new content like web pages.

name?: string

Name of the file.

parentFolderId?: string

ID of the folder the file is in.

path?: string

Path of the file in the file manager.

size?: number

Size of the file in bytes.

type?: string

Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER.

updatedAt: Date

Timestamp of the latest update to the file.

url?: string

URL of the given file. This URL can change depending on the domain settings of the account. Will use the select file hosting domain.

width?: number

For image and video files, the width of the content.

attributeTypeMap: {
    baseName: string;
    format: string;
    name: string;
    type: string;
}[] = ...
discriminator: undefined | string = undefined

Methods

  • Returns {
        baseName: string;
        format: string;
        name: string;
        type: string;
    }[]