fix: 文件路径ToSlash去除多斜杠转义
This commit is contained in:
1 parent
9522e6f879
commit
cf11242699
3 files changed
+4
-4
No files matched your search
@@ -72,13 +72,13 @@ func UploadFile(w http.ResponseWriter, r *http.Request) {
|
||||
fileName = fileNamePath
|
||||
} else {
|
||||
path = config.GetYamlConfig().OMC.FrontUpload
|
||||
fileName, err := services.HandleUploadFile(r, path, fileName)
|
||||
fileNamePath, err := services.HandleUploadFile(r, path, fileName)
|
||||
if err != nil {
|
||||
log.Error("Faile to HandleUploadFile:", err)
|
||||
services.ResponseInternalServerError500ProcessError(w, err)
|
||||
return
|
||||
}
|
||||
fileName = fileName
|
||||
fileName = fileNamePath
|
||||
}
|
||||
log.Debugf("upload file=%s to path=%s", fileName, path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user