File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ function putObject() {
207207 Bucket : config . Bucket , /* 必须 */
208208 Region : config . Region ,
209209 Key : filename , /* 必须 */
210+ // Body: filepath,
210211 Body : fs . createReadStream ( filepath ) , /* 必须 */
211212 ContentLength : fs . statSync ( filepath ) . size , /* 必须 */
212213 onProgress : function ( progressData ) {
Original file line number Diff line number Diff line change @@ -545,6 +545,7 @@ function uploadSliceList(params, cb) {
545545 FinishSize -= preAddSize ;
546546 } else {
547547 FinishSize += currentSize - preAddSize ;
548+ SliceItem . ServerETag = data . ETag ;
548549 }
549550 onFileProgress ( true ) ;
550551 asyncCallback ( err || null , data ) ;
@@ -634,7 +635,7 @@ function uploadSliceComplete(params, callback) {
634635 var item = SliceList [ i ] ;
635636 var PartItem = {
636637 PartNumber : item [ 'PartNumber' ] ,
637- ETag : item [ 'ETag ' ]
638+ ETag : item [ 'ServerETag ' ]
638639 } ;
639640
640641 Parts . push ( PartItem ) ;
You can’t perform that action at this time.
0 commit comments