fileDialog

opens a file browsing dialog on a client machine

void fileDialog( [object content] );
contentobjectfile upload context

Example

$$("uploadAPI").fileDialog();
//or
$$("uploadAPI").fileDialog({ rowid : id.row });

Related samples

Details

File upload context is an optional object with any properties that you would like to see within an uploaded item data.

For instance, context can be used in the onFileUpload event:

webix.ui({
    view:"uploader",
    id:"uploadAPI",
    on:{
        onFileUpload:function(item){
            var id = item.context.rowid;
            var row = $$("people").getItem(id);
 
            row.photo = item.sname;
            $$("people").updateItem(id, row);
        }
    }
});
See also
Back to top