1
0
forked from crony/UpFast

Remove redirect for security reasons.

This commit is contained in:
CronyAkatsuki 2024-01-06 20:39:02 +01:00
parent fc098ec7c6
commit 7365240e35

View File

@ -211,7 +211,7 @@ func Upload(c echo.Context) error {
return c.String(http.StatusOK, fileUrl)
}
return c.Redirect(http.StatusMovedPermanently, "/files/"+file.Filename)
return c.HTML(http.StatusOK, "File uploaded at url: <strong>" + fileUrl + "</strong>")
}
func Delete(c echo.Context) error {