forked from TrueCloudLab/frostfs-http-gw
Refactoring uploading
- DisablePreParseMultipartForm = true - used `fetchMultipartFile` method instead of `MultipartForm` - don't store temporary files, only streaming Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
3b8bf3017d
commit
3f635a018a
3 changed files with 52 additions and 44 deletions
2
app.go
2
app.go
|
@ -102,7 +102,7 @@ func newApp(ctx context.Context, opt ...Option) App {
|
|||
// FIXME don't work with StreamRequestBody,
|
||||
// some bugs with readMultipartForm
|
||||
// https://github.com/valyala/fasthttp/issues/968
|
||||
// a.web.DisablePreParseMultipartForm = true
|
||||
a.web.DisablePreParseMultipartForm = true
|
||||
|
||||
a.web.StreamRequestBody = a.cfg.GetBool(cfgWebStreamRequestBody)
|
||||
// -- -- -- -- -- -- -- -- -- --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue