fileDialog

opens a file browsing dialog on a client machine

void fileDialog( [object context] );
contextobjectfile 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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.