File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ qiniu-js-sdk
77
77
// 'time' : function(up,file) {
78
78
// var time = (new Date()).getTime();
79
79
// do something with 'time'
80
- // returnt time;
80
+ // return time;
81
81
// },
82
82
// 'size' : function(up,file) {
83
83
// var size = file.size;
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ function QiniuJsSDK() {
350
350
if ( x_vars . hasOwnProperty ( x_key ) ) {
351
351
if ( typeof x_vars [ x_key ] === 'function' ) {
352
352
multipart_params_obj [ 'x:' + x_key ] = x_vars [ x_key ] ( up , file ) ;
353
- } else if ( typeof x_vars [ x_key ] === 'string ') {
353
+ } else if ( typeof x_vars [ x_key ] !== 'object ') {
354
354
multipart_params_obj [ 'x:' + x_key ] = x_vars [ x_key ] ;
355
355
}
356
356
}
@@ -507,7 +507,7 @@ function QiniuJsSDK() {
507
507
if ( x_vars . hasOwnProperty ( x_key ) ) {
508
508
if ( typeof x_vars [ x_key ] === 'function' ) {
509
509
x_val = that . URLSafeBase64Encode ( x_vars [ x_key ] ( up , file ) ) ;
510
- } else if ( typeof x_vars [ x_key ] === 'string ') {
510
+ } else if ( typeof x_vars [ x_key ] !== 'object ') {
511
511
x_val = that . URLSafeBase64Encode ( x_vars [ x_key ] ) ;
512
512
}
513
513
x_vars_url += '/x:' + x_key + '/' + x_val ;
@@ -525,6 +525,7 @@ function QiniuJsSDK() {
525
525
if ( ajax . readyState === 4 ) {
526
526
if ( ajax . status === 200 ) {
527
527
var info = ajax . responseText ;
528
+
528
529
if ( FileUploaded_Handler ) {
529
530
FileUploaded_Handler ( up , file , info ) ;
530
531
}
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ function QiniuJsSDK() {
350
350
if ( x_vars . hasOwnProperty ( x_key ) ) {
351
351
if ( typeof x_vars [ x_key ] === 'function' ) {
352
352
multipart_params_obj [ 'x:' + x_key ] = x_vars [ x_key ] ( up , file ) ;
353
- } else if ( typeof x_vars [ x_key ] === 'string ') {
353
+ } else if ( typeof x_vars [ x_key ] !== 'object ') {
354
354
multipart_params_obj [ 'x:' + x_key ] = x_vars [ x_key ] ;
355
355
}
356
356
}
@@ -507,7 +507,7 @@ function QiniuJsSDK() {
507
507
if ( x_vars . hasOwnProperty ( x_key ) ) {
508
508
if ( typeof x_vars [ x_key ] === 'function' ) {
509
509
x_val = that . URLSafeBase64Encode ( x_vars [ x_key ] ( up , file ) ) ;
510
- } else if ( typeof x_vars [ x_key ] === 'string ') {
510
+ } else if ( typeof x_vars [ x_key ] !== 'object ') {
511
511
x_val = that . URLSafeBase64Encode ( x_vars [ x_key ] ) ;
512
512
}
513
513
x_vars_url += '/x:' + x_key + '/' + x_val ;
@@ -525,6 +525,7 @@ function QiniuJsSDK() {
525
525
if ( ajax . readyState === 4 ) {
526
526
if ( ajax . status === 200 ) {
527
527
var info = ajax . responseText ;
528
+
528
529
if ( FileUploaded_Handler ) {
529
530
FileUploaded_Handler ( up , file , info ) ;
530
531
}
You can’t perform that action at this time.
0 commit comments