Browse Source

feat:设置上传大小限制

zhangxinlei1996 1 year ago
parent
commit
ac4521d5b4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/internal/handler/routes.go

+ 1 - 0
api/internal/handler/routes.go

@@ -73,5 +73,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: canAddReqHandler(serverCtx),
 			},
 		},
+		rest.WithMaxBytes(104857600),
 	)
 }