If a partial upload has a deferred size, then it's not finished

This commit is contained in:
Adam Jensen 2018-06-03 13:07:07 -04:00
parent 750d4d5eb6
commit c605926ff8
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ func (handler *UnroutedHandler) sizeOfUploads(ids []string) (size int64, err err
return size, err
}
if info.Offset != info.Size {
if info.SizeIsDeferred || info.Offset != info.Size {
err = ErrUploadNotFinished
return size, err
}