When file upload is complete, the returned value is NoSuchKey not NoSuchUpload

This commit is contained in:
Mortadha Saad 2017-04-08 11:49:48 +03:00
parent 473489ce06
commit 143d7159d8
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ func (store S3Store) GetInfo(id string) (info tusd.FileInfo, err error) {
// when the multipart upload has already been completed or aborted. Since // when the multipart upload has already been completed or aborted. Since
// we already found the info object, we know that the upload has been // we already found the info object, we know that the upload has been
// completed and therefore can ensure the the offset is the size. // completed and therefore can ensure the the offset is the size.
if isAwsError(err, "NoSuchUpload") { if isAwsError(err, "NoSuchKey") {
info.Offset = info.Size info.Offset = info.Size
return info, nil return info, nil
} else { } else {