Documentation

Upload

build

Arguments
options Object

Build the upload box with the following options object:

var options = {
    url: 'path-to-server-side',
    element: el, // file input or another element to build upload box
    name: 'uploadname',
    data: {} // optional object
};

Call method:

this.app.api('module.upload.build', options);

or external call:

$R('#content', 'module.upload.build', options);