ImFantuan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
weed/s3api/filer_multipart.go
|
@ -117,7 +117,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
entryName := filepath.Base(*input.Key) |
|
|
entryName := filepath.Base(*input.Key) |
|
|
dirName := filepath.Dir(*input.Key) |
|
|
dirName := filepath.Dir(*input.Key) |
|
|
if dirName == "." { |
|
|
if dirName == "." { |
|
@ -147,6 +147,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa |
|
|
} else if mime != "" { |
|
|
} else if mime != "" { |
|
|
entry.Attributes.Mime = mime |
|
|
entry.Attributes.Mime = mime |
|
|
} |
|
|
} |
|
|
|
|
|
entry.Attributes.FileSize = uint64(offset) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if err != nil { |
|
|
if err != nil { |
|
|