Describes as file that is stored temporarily (for uploads of unsaved content)

interface ITemporaryFile {
    expiresAt: Date;
    filename: string;
    ownedByUserId: string;
}

Properties

expiresAt: Date

Indicates when the temporary file should be deleted.

filename: string

The name by which the file can be identified; can be a path including subdirectories (e.g. 'images/xyz.png')

ownedByUserId: string

The user who is allowed to access the file