Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到上传尺寸大于DefaultMaxRequestBodySize. 你能分享一下如何使用上传大文件fasthttp吗?
DefaultMaxRequestBodySize
fasthttp
不幸的是,我收到了错误body size exceeds the given limit。
body size exceeds the given limit
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, }
只需在启动时设置大小。