Skip to content

Commit

Permalink
improved
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Aug 20, 2020
1 parent b641203 commit 2920eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Upload(ctx echo.Context, opts ...OptionsSetter) Client {
return client.SetError(err)
}
readerAndSizer = WrapFileWithSize(int64(len(b)), watermark.Bytes2file(b))
} else {
} else if options.Callback != nil {
if _, ok := body.(io.Seeker); !ok {
_, body, err = CopyBody(body)
if err != nil {
Expand Down

0 comments on commit 2920eef

Please sign in to comment.