+swfuploadifyQueue.queueLength);
}
}
onDialogOpen : function() {//当选择文件对话框打开时触发
alert( ‘Open!’);
}
onSelect : function(file) {//当每个文件添加至队列后触发
alert( ‘id: ‘ + file.id
+ ‘ – 索引: ‘ + file.index
+ ‘ – 文件名: ‘ + file.name
+ ‘ – 文件大小: ‘ + file.size
+ ‘ – 类型: ‘ + file.type
+ ‘ – 创建日期: ‘ + file.creationdate
+ ‘ – 修改日期: ‘ + file.modificationdate
+ ‘ – 文件状态: ‘ + file.filestatus);
}
onSelectError : function(file,errorCode,errorMsg) {//当文件选定发生错误时触发
alert( ‘id: ‘ + file.id
+ ‘ – 索引: ‘ + file.index
+ ‘ – 文件名: ‘ + file.name
+ ‘ – 文件大小: ‘ + file.size
+ ‘ – 类型: ‘ + file.type
+ ‘ – 创建日期: ‘ + file.creationdate
+ ‘ – 修改日期: ‘ + file.modificationdate
+ ‘ – 文件状态: ‘ + file.filestatus
+ ‘ – 错误代码: ‘ + errorCode
+ ‘ – 错误信息: ‘ + errorMsg);
}
onQueueComplete : function(stats) {//当队列中的所有文件全部完成上传时触发
alert( ‘成功上传的文件数: ‘ + stats.successful_uploads
+ ‘ – 上传出错的文件数: ‘ + stats.upload_errors
+ ‘ – 取消上传的文件数: ‘ + stats.upload_cancelled
+ ‘ – 出错的文件数’ + stats.queue_errors);
}
onUploadComplete : function(file,swfuploadifyQueue) {//队列中的每个文件上传完成时触发一次
alert( ‘id: ‘ + file.id
+ ‘ – 索引: ‘ + file.index
+ ‘ – 文件名: ‘ + file.name
+ ‘ – 文件大小: ‘ + file.size
+ ‘ – 类型: ‘ + file.type
+ ‘ – 创建日期: ‘ + file.creationdate
+ ‘ – 修改日期: ‘ + file.modificationdate
+ ‘ – 文件状态: ‘ + file.filestatus
+ ‘ – 出错的文件数: ‘ + swfuploadifyQueue.filesErrored
+ ‘ – 错误信息: ‘ + swfuploadifyQueue.errorMsg
+ ‘ – 要添加至队列的数量: ‘ + swfuploadifyQueue.filesSelected
+ ‘ – 添加至对立的数量: ‘ + swfuploadifyQueue.filesQueued
+ ‘ – 队列长度: ‘ + swfuploadifyQueue.queueLength);
}
onUploadError : function(file,errorCode,errorMsg,errorString,swfuploadifyQueue) {//上传文件出错是触发(每个出错文件触发一次)










