1

I can not find an example for upload a file with greater dimension than the DefaultMaxRequestBodySize. Could you please share how to upload a big file using fasthttp?

Unfortunately, I receive the error body size exceeds the given limit.

alessiosavi
  • 2,753
  • 2
  • 19
  • 38

1 Answers1

2
s := &fasthttp.Server{
    Handler: requestHandler,

    // Every response will contain 'Server: My super server' header.
    Name: "My super server",

    // Other Server settings may be set here.

    MaxRequestBodySize: 4 * 1024 * 1024 * 1024,
}

Just set the size when start.

p1gd0g
  • 631
  • 5
  • 16