From 143d7159d899f034441e70ed2f1fa634a26b6062 Mon Sep 17 00:00:00 2001 From: Mortadha Saad Date: Sat, 8 Apr 2017 11:49:48 +0300 Subject: [PATCH] When file upload is complete, the returned value is NoSuchKey not NoSuchUpload --- s3store/s3store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3store/s3store.go b/s3store/s3store.go index 90c6ed6..859c6af 100644 --- a/s3store/s3store.go +++ b/s3store/s3store.go @@ -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 // we already found the info object, we know that the upload has been // completed and therefore can ensure the the offset is the size. - if isAwsError(err, "NoSuchUpload") { + if isAwsError(err, "NoSuchKey") { info.Offset = info.Size return info, nil } else {