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