Skip to content

Commit

Permalink
update upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoliang committed Mar 26, 2021
1 parent f2a0dc3 commit 228fb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object.go
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ func (s *ObjectService) Upload(ctx context.Context, name string, filepath string
}
}
// filesize=0 , use simple upload
if partNum == 0 || totalBytes <= singleUploadThreshold {
if partNum == 0 || partNum == 1 {
var opt0 *ObjectPutOptions
if opt.OptIni != nil {
opt0 = &ObjectPutOptions{
Expand Down

0 comments on commit 228fb17

Please sign in to comment.