feat: upload resource by openid api (#55)

This commit is contained in:
STEVEN
2022-05-15 22:54:21 +08:00
committed by GitHub
parent 615cec3066
commit 5fc0fb24f4
3 changed files with 62 additions and 5 deletions

View File

@ -15,7 +15,7 @@ func (s *Server) registerResourceRoutes(g *echo.Group) {
g.POST("/resource", func(c echo.Context) error {
userID := c.Get(getUserIDContextKey()).(int)
err := c.Request().ParseMultipartForm(5 << 20)
err := c.Request().ParseMultipartForm(64 << 20)
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "Upload file overload max size").SetInternal(err)
}