From 39f0246deb8edd4ac44f6fe7eb4afe55c2d2d923 Mon Sep 17 00:00:00 2001 From: LHHDZ Date: Fri, 11 Nov 2022 20:53:53 +0800 Subject: [PATCH] fix 'NoSuchUpload' when upload part (#3968) --- weed/s3api/s3api_object_multipart_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_object_multipart_handlers.go b/weed/s3api/s3api_object_multipart_handlers.go index d30e65ad9..b08a1e797 100644 --- a/weed/s3api/s3api_object_multipart_handlers.go +++ b/weed/s3api/s3api_object_multipart_handlers.go @@ -284,7 +284,7 @@ func (s3a *S3ApiServer) generateUploadID(object string) string { // Check object name and uploadID when processing multipart uploading func (s3a *S3ApiServer) checkUploadId(object string, id string) error { - hash := s3a.generateUploadID(strings.Split(object, "_")[0]) + hash := s3a.generateUploadID(object) if !strings.HasPrefix(id, hash) { glog.Errorf("object %s and uploadID %s are not matched", object, id)