mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 14:49:52 +00:00
fix: fix upload path error
This commit is contained in:
parent
cc8354c5ed
commit
cd7a46f10c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user