@@ -17,17 +17,6 @@ $(function() {
1717 chunk_size : '4mb' ,
1818 uptoken_url : $ ( '#uptoken_url' ) . val ( ) ,
1919 domain : $ ( '#domain' ) . val ( ) ,
20- // downtoken_url: '/downtoken',
21- // unique_names: true,
22- // save_key: true,
23- // x_vars: {
24- // 'id': '1234',
25- // 'time': function(up, file) {
26- // var time = (new Date()).getTime();
27- // // do something with 'time'
28- // return time;
29- // },
30- // },
3120 auto_start : true ,
3221 init : {
3322 'FilesAdded' : function ( up , files ) {
@@ -59,17 +48,11 @@ $(function() {
5948 progress . setComplete ( up , info ) ;
6049 } ,
6150 'Error' : function ( up , err , errTip ) {
62- $ ( 'table' ) . show ( ) ;
63- var progress = new FileProgress ( err . file , 'fsUploadProgress' ) ;
64- progress . setError ( ) ;
65- progress . setStatus ( errTip ) ;
66- }
67- // ,
68- // 'Key': function(up, file) {
69- // var key = "";
70- // // do something with key
71- // return key
72- // }
51+ $ ( 'table' ) . show ( ) ;
52+ var progress = new FileProgress ( err . file , 'fsUploadProgress' ) ;
53+ progress . setError ( ) ;
54+ progress . setStatus ( errTip ) ;
55+ }
7356 }
7457 } ) ;
7558
@@ -89,17 +72,6 @@ $(function() {
8972 chunk_size : '4mb' ,
9073 uptoken_url : $ ( '#uptoken_url' ) . val ( ) ,
9174 domain : $ ( '#domain' ) . val ( ) ,
92- // downtoken_url: '/downtoken',
93- // unique_names: true,
94- // save_key: true,
95- // x_vars: {
96- // 'id': '1234',
97- // 'time': function(up, file) {
98- // var time = (new Date()).getTime();
99- // // do something with 'time'
100- // return time;
101- // },
102- // },
10375 auto_start : true ,
10476 init : {
10577 'FilesAdded' : function ( up , files ) {
@@ -131,22 +103,16 @@ $(function() {
131103 progress . setComplete ( up , info ) ;
132104 } ,
133105 'Error' : function ( up , err , errTip ) {
134- $ ( 'table' ) . show ( ) ;
135- var progress = new FileProgress ( err . file , 'fsUploadProgress' ) ;
136- progress . setError ( ) ;
137- progress . setStatus ( errTip ) ;
138- }
139- // ,
140- // 'Key': function(up, file) {
141- // var key = "";
142- // // do something with key
143- // return key
144- // }
106+ $ ( 'table' ) . show ( ) ;
107+ var progress = new FileProgress ( err . file , 'fsUploadProgress' ) ;
108+ progress . setError ( ) ;
109+ progress . setStatus ( errTip ) ;
110+ }
145111 }
146112 } ) ;
147113
148114 uploader2 . bind ( 'FileUploaded' , function ( ) {
149- console . log ( 'hello man,a file is uploaded' ) ;
115+ console . log ( 'hello man 2 ,a file is uploaded' ) ;
150116 } ) ;
151117
152118 $ ( '#container' ) . on (
0 commit comments