Browse Source

fix the error output while size of the part is invalid

hangzws 7 năm trước cách đây
mục cha
commit
4e2d9133e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      oss/upload.go

+ 1 - 1
oss/upload.go

@@ -24,7 +24,7 @@ import (
 //
 func (bucket Bucket) UploadFile(objectKey, filePath string, partSize int64, options ...Option) error {
 	if partSize < MinPartSize || partSize > MaxPartSize {
-		return errors.New("oss: part size invalid range (1024KB, 5GB]")
+		return errors.New("oss: part size invalid range (100KB, 5GB]")
 	}
 
 	cpConf := getCpConfig(options)