Media/Methods

Media/Methods

Source:

Media-related Meteor methods

Methods

(static) media/insert(fileRecord) → {String}

Insert a new media record.

Source:
Parameters:
Name Type Description
fileRecord Object

document from file collection upload.

Returns:
  • _id of the new inserted media record.
Type
String

(static) media/remove(fileRecordId) → {Boolean}

Unpublish a media record by updating it's workflow

Source:
Parameters:
Name Type Description
fileRecordId String

_id of file record to be deleted.

Returns:
Type
Boolean

(static) media/updatePriorities(sortedMediaIDs) → {Boolean}

sorting media by array indexes

Source:
Parameters:
Name Type Description
sortedMediaIDs Array.<String>
Returns:

true

Type
Boolean