Documentation

API / oncreate callback

This callback gets executed when a document is created by the createDoc method.

Parameters

NameDescription
file File instance of the created document.

Example

moxman.createDoc({
path: '/files/images',
oncreate: function(args) {
console.log(args.file);
}
});