mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 18:04:55 +01:00
s3: fix multipart upload uploading 0 length files
This regression was introduced by the recent re-write of the s3 multipart upload code.
This commit is contained in:
parent
ad2bb86d8c
commit
7242c7ce95
@ -2127,7 +2127,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si
|
||||
var n int
|
||||
n, err = readers.ReadFill(in, buf) // this can never return 0, nil
|
||||
if err == io.EOF {
|
||||
if n == 0 {
|
||||
if n == 0 && partNum != 1 { // end if no data and if not first chunk
|
||||
break
|
||||
}
|
||||
finished = true
|
||||
|
Loading…
Reference in New Issue
Block a user