diff options
| author | Henco Appel <hencoappel+github@gmail.com> | 2023-07-11 17:05:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-11 09:05:14 -0700 |
| commit | 89542db2d0b15502f31575216e6568588ad71552 (patch) | |
| tree | 653cae0e98c05677c0452cd76d33457435ab7782 | |
| parent | 680c2e76f15a5b8688b8ed7f5908a47dc69bcd42 (diff) | |
| download | seaweedfs-89542db2d0b15502f31575216e6568588ad71552.tar.xz seaweedfs-89542db2d0b15502f31575216e6568588ad71552.zip | |
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>
| -rw-r--r-- | weed/s3api/filer_multipart.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.go index 414ba4bb2..3cf0971f6 100644 --- a/weed/s3api/filer_multipart.go +++ b/weed/s3api/filer_multipart.go @@ -122,7 +122,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa } entryName := filepath.Base(*input.Key) - dirName := filepath.Dir(*input.Key) + dirName := filepath.ToSlash(filepath.Dir(*input.Key)) if dirName == "." { dirName = "" } |
