|
@@ -191,6 +191,9 @@ func (bucket Bucket) uploadFile(objectKey, filePath string, partSize int64, opti
|
|
|
event := newProgressEvent(TransferStartedEvent, 0, totalBytes, 0)
|
|
event := newProgressEvent(TransferStartedEvent, 0, totalBytes, 0)
|
|
|
publishProgress(listener, event)
|
|
publishProgress(listener, event)
|
|
|
|
|
|
|
|
|
|
+ // oss server don't support x-oss-storage-class
|
|
|
|
|
+ options = deleteOption(options, HTTPHeaderOssStorageClass)
|
|
|
|
|
+
|
|
|
// Start the worker coroutine
|
|
// Start the worker coroutine
|
|
|
arg := workerArg{&bucket, filePath, imur, options, uploadPartHooker}
|
|
arg := workerArg{&bucket, filePath, imur, options, uploadPartHooker}
|
|
|
for w := 1; w <= routines; w++ {
|
|
for w := 1; w <= routines; w++ {
|
|
@@ -479,6 +482,9 @@ func (bucket Bucket) uploadFileWithCp(objectKey, filePath string, partSize int64
|
|
|
event := newProgressEvent(TransferStartedEvent, completedBytes, ucp.FileStat.Size, 0)
|
|
event := newProgressEvent(TransferStartedEvent, completedBytes, ucp.FileStat.Size, 0)
|
|
|
publishProgress(listener, event)
|
|
publishProgress(listener, event)
|
|
|
|
|
|
|
|
|
|
+ // oss server don't support x-oss-storage-class
|
|
|
|
|
+ options = deleteOption(options, HTTPHeaderOssStorageClass)
|
|
|
|
|
+
|
|
|
// Start the workers
|
|
// Start the workers
|
|
|
arg := workerArg{&bucket, filePath, imur, options, uploadPartHooker}
|
|
arg := workerArg{&bucket, filePath, imur, options, uploadPartHooker}
|
|
|
for w := 1; w <= routines; w++ {
|
|
for w := 1; w <= routines; w++ {
|