Home Reference Source
import File from 'magister.js/src/file.js'
public class | source

File

Extends:

MagisterThing → File

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public

download(): Promise<Stream>

Opens a stream to the current file

public

Removes the current file permanently

public

Update the server to reflect the changes made on the properties of this File instance.

Inherited Summary

From class MagisterThing
public

Public Members

public addedBy: Person source

public changedDate: Date source

public creationDate: Date source

public fileBlobId: String source

public fileFolder: FileFolder source

public id: String source

public mime: String source

public name: String source

public referenceId: String source

public rights: Number source

public size: Number source

public type: Number source

public uniqueId: String source

public uri: String source

Public Methods

public download(): Promise<Stream> source

Opens a stream to the current file

Return:

Promise<Stream>

public remove(): Promise<undefined> source

Removes the current file permanently

Return:

Promise<undefined>

public saveChanges(): Promise<undefined> source

Update the server to reflect the changes made on the properties of this File instance.

Return:

Promise<undefined>