Skip to content

Commit

Permalink
add StreamRequestBody for fiber
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Mar 4, 2025
1 parent 5c84c9b commit 43df87a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/upload/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ type Server struct {
func (server *Server) Init() error {
server.getEnvAppInfo()
server.app = fiber.New(fiber.Config{
BodyLimit: math.MaxInt, // this is the default limit of 10MB
BodyLimit: math.MaxInt, // this is the default limit of 10MB
StreamRequestBody: true,
})
// middleware to allow all clients to communicate using http and allow cors
server.app.Use(cors.New(cors.Config{
Expand Down

0 comments on commit 43df87a

Please sign in to comment.