fix: fix upload path error

This commit is contained in:
CorrectRoadH 2023-12-21 16:37:45 +08:00
parent cc8354c5ed
commit cd7a46f10c

View File

@ -5,7 +5,6 @@ import (
"io" "io"
"net/http" "net/http"
"os" "os"
"path/filepath"
"strconv" "strconv"
"sync" "sync"
@ -61,7 +60,7 @@ func (s *FileUploadService) TestChunk(c echo.Context) error {
} }
func (s *FileUploadService) UploadFile(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 // handle the request
chunkNumber, err := strconv.ParseInt(c.FormValue("chunkNumber"), 10, 64) chunkNumber, err := strconv.ParseInt(c.FormValue("chunkNumber"), 10, 64)