Remove redirect for security reasons.
This commit is contained in:
parent
fc098ec7c6
commit
7365240e35
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue