Skip to content

Commit 66205bf

Browse files
committed
update main.js
1 parent 5f216e9 commit 66205bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

demo/js/main.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ var uploader = Qiniu.uploader({
1616
domain: 'http://qiniu-plupload.qiniudn.com/',
1717
// unique_names: true,
1818
// save_key: true,
19+
// x_vars: {
20+
// 'id': '1234',
21+
// 'time': function(up, file) {
22+
// var time = (new Date()).getTime();
23+
// // do something with 'time'
24+
// return time;
25+
// },
26+
// },
1927
auto_start: true,
2028
init: {
2129
'FilesAdded': function(up, files) {
@@ -44,6 +52,7 @@ var uploader = Qiniu.uploader({
4452
},
4553
'FileUploaded': function(up, file, info) {
4654
var progress = new FileProgress(file, 'fsUploadProgress');
55+
console.log(up, info);
4756
progress.setComplete(up, info);
4857
},
4958
'Error': function(up, err, errTip) {
@@ -216,4 +225,4 @@ $(function() {
216225
return false;
217226
});
218227

219-
});
228+
});

0 commit comments

Comments
 (0)