Appframe Knowledge Base


1 hits
0

How to upload files using javascript (plupload)

var vUploader = new af.controls.Uploader({
    autoUpload: true,
    showUploadButton: false,
    dataSourceId: "dsSomething",
    initialize: true
});

vUploader.show();
vUploader.setBindings({ IssueId : dsIssues.currentRow("IssueID") });

vUploader.attachEvent('onUploadComplete', function() {
    dsFiles.refreshDataSource();
    vUploader.close();
});

components web · Perma link post comment Posted by: Peter Øren (18-jan-2012)