CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Merge branch 'v0.3.7' of https://github.com/IceWhaleTech/CasaOS into v0.3.7
LinkLeongbe80d0cd9591
diff --cc route/v1/file.goindex 396074d,64a5f69..2b1fd11--- a/route/v1/file.go+++ b/route/v1/file.go@@@ -405,9 -403,11 +403,10 @@@ func PostFileUpload(c *gin.Context)hash := file.GetHashByContent([]byte(fileName))if len(path) == 0 {- c.JSON(common_err.INVALID_PARAMS, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})+ loger.Error("path should not be empty")+ c.JSON(http.StatusBadRequest, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})return}-tempDir := filepath.Join(path, ".temp", hash+strconv.Itoa(totalChunks)) + "/"if fileName != relative {