修复编辑文件失败的问题

This commit is contained in:
dushixiang
2021-10-31 19:44:39 +08:00
parent 15bd8e0881
commit 47d0a8cc7a
2 changed files with 6 additions and 7 deletions

View File

@ -326,8 +326,8 @@ func StorageEditEndpoint(c echo.Context) error {
if err := PermissionCheck(c, storageId); err != nil {
return err
}
file := c.Param("file")
fileContent := c.Param("fileContent")
file := c.FormValue("file")
fileContent := c.FormValue("fileContent")
return StorageEdit(c, file, fileContent, storageId)
}