Documentation
API / oncreate callback
This callback gets executed when a document is created by the createDoc method.
Parameters
| Name | Description | 
|---|---|
| file | File instance of the created document. | 
Example
moxman.createDoc({
    path: '/files/images',
    oncreate: function(args) {
        console.log(args.file);
    }
});