mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Fix S3 API multipart upload on Windows (#4666)
The file paths were being having '/' changed to '\' by filepath.Dir() resulting in a file being created with '\' separators, but when trying to read the files, the same wasn't happening. Co-authored-by: Hendrik Appel <happel@europe.altair.com>
This commit is contained in:
parent
680c2e76f1
commit
89542db2d0
|
@ -122,7 +122,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.ToSlash(filepath.Dir(*input.Key))
|
||||||
if dirName == "." {
|
if dirName == "." {
|
||||||
dirName = ""
|
dirName = ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue