Documentation

API / CreateDoc

This method enables you to create a document in the specified path.

Parameters

NameDescription
path Public file system path where the document should be created.
oncreate Callback that gets executed when the document is created.
onopen Fires after the dialog has been opened. Can be used to produce a custom throbber.

Example

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