update MultiUpload

This commit is contained in:
agin719
2019-12-09 08:42:21 -08:00
parent 2258d2c729
commit 04717c1144
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import (
"time"
"fmt"
"github.com/agin719/cos-go-sdk-v5"
"github.com/tencentyun/cos-go-sdk-v5"
"github.com/tencentyun/cos-go-sdk-v5/debug"
)

View File

@@ -580,11 +580,11 @@ func SplitFileIntoChunks(filePath string, partSize int64) ([]Chunk, int, error)
// 当 partSize > 0 时,由调用者指定分块大小,否则由 SDK 自动切分单位为MB
// 由调用者指定分块大小时请确认分块数量不超过10000
//
func (s *ObjectService) Upload(ctx context.Context, name string, filepath string, opt *MultiUploadOptions) (*CompleteMultipartUploadResult, *Response, error) {
return s.MultiUpload(ctx, name, filepath, opt)
func (s *ObjectService) MultiUpload(ctx context.Context, name string, filepath string, opt *MultiUploadOptions) (*CompleteMultipartUploadResult, *Response, error) {
return s.Upload(ctx, name, filepath, opt)
}
func (s *ObjectService) MultiUpload(ctx context.Context, name string, filepath string, opt *MultiUploadOptions) (*CompleteMultipartUploadResult, *Response, error) {
func (s *ObjectService) Upload(ctx context.Context, name string, filepath string, opt *MultiUploadOptions) (*CompleteMultipartUploadResult, *Response, error) {
if opt == nil {
opt = &MultiUploadOptions{}
}