documents

Represents a file or document (a remote url or a blob)

class DocumentCollection()

Documents collection

Extends

app.models.base.BaseCollection()

class DocumentModel()

Document model Frontend model for assembl.models.attachment.Document

Extends

app.models.base.BaseModel()

DocumentModel.app.models.documents.DocumentModel.urlRoot
Type

string

DocumentModel.isFileType()

Checks if document type is a file

Return type

Boolean

class FileModel()

File model Frontend model for assembl.models.attachment.Document

Extends

app.models.documents.DocumentModel()

FileModel.isImageType()

Returns a mime type

Return type

String

FileModel.save()

Save the model into database This model takes a fileAttribute of raw_data, which the backend will consume using a Multipart form header. In order to make the push a multi-part form header, must pass the option formData.

Return type

jqXHR