From cd7a46f10c3dc468e54eba5e69075dea6510c642 Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Thu, 21 Dec 2023 16:37:45 +0800 Subject: [PATCH] fix: fix upload path error --- service/file_upload.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/file_upload.go b/service/file_upload.go index c790416..de632db 100644 --- a/service/file_upload.go +++ b/service/file_upload.go @@ -5,7 +5,6 @@ import ( "io" "net/http" "os" - "path/filepath" "strconv" "sync" @@ -61,7 +60,7 @@ func (s *FileUploadService) TestChunk(c echo.Context) error { } func (s *FileUploadService) UploadFile(c echo.Context) error { - path := filepath.Join(c.FormValue("path"), c.FormValue("relativePath")) + path := c.FormValue("path") // handle the request chunkNumber, err := strconv.ParseInt(c.FormValue("chunkNumber"), 10, 64)