Skip to content

Commit 70cbdd2

Browse files
committed
1
1 parent e566315 commit 70cbdd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/teldrive/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (d *Teldrive) doSingleUpload(ctx context.Context, dstDir model.Obj, file mo
163163
uploadParams := map[string]string{
164164
"partName": func() string {
165165
digits := len(strconv.Itoa(chunkCnt))
166-
return file.GetName() + fmt.Sprintf(".%0*d", digits, 1)
166+
return file.GetName() + fmt.Sprintf(".%0*d", digits, chunkCnt)
167167
}(),
168168
"partNo": strconv.Itoa(chunkCnt),
169169
"fileName": file.GetName(),

0 commit comments

Comments
 (0)