uploader.on('uploadSuccess', function (file) {
var cellEl = grid.getCellEl(file.id, 'FileStatus').find('.f-grid-cell-inner');
cellEl.text('上传成功');
});
uploader.on('uploadError', function (file) {
var cellEl = grid.getCellEl(file.id, 'FileStatus').find('.f-grid-cell-inner');
cellEl.text('上传出错');
});
// Whether the upload succeeds or fails, the uploadComplete event will trigger
uploader.on('uploadComplete', function (file) {
uploader.removeFile(file, true);
});
// Triggered when the process is started
uploader.on('startUpload', function () {
// Disable delete button
F(btnDeleteFilesClientID).disable();
});
// Triggered when all file uploads are ended
uploader.on('uploadFinished', function () {
F(btnDeleteFilesClientID).enable();