Js代码
文件',formData: {
timestamp: new Date().getTime()
},onSelect: function(file){
//重写校验
},onUploadProgress: function(file,bytesUploaded,bytesTotal,totalBytesUploaded,totalBytesTotal){
$('#pregress').html('总共需要上传'+bytesTotal+'字节,'+'已上传'+totalBytesTotal+'字节');
},onUploadSuccess: function(file){
//上传成功
}
});