Skip to content

Commit

Permalink
fix(ilanzou): fix upload failure for small files (#7368 close #7250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Fly authored Oct 20, 2024
1 parent 48ac23c commit a2dc45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ilanzou/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (d *ILanZou) Put(ctx context.Context, dstDir model.Obj, stream model.FileSt
req.SetBody(base.Json{
"fileId": "",
"fileName": stream.GetName(),
"fileSize": stream.GetSize() / 1024,
"fileSize": stream.GetSize()/1024 + 1,
"folderId": dstDir.GetID(),
"md5": etag,
"type": 1,
Expand Down

0 comments on commit a2dc45a

Please sign in to comment.