forked from crony/UpFast
Remove redirect for security reasons.
This commit is contained in:
parent
fc098ec7c6
commit
7365240e35
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…
Reference in New Issue
Block a user