修复编辑文件失败的问题

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

No files matched your search

+2 -2
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)
}