After implementing a tiny service I realized that there is a limit of maximum amount of files which is just 10 files.
I found this option https://hackage.haskell.org/package/wai-extra-3.1.6/docs/Network-Wai-Parse.html#v:setMaxRequestNumFiles and was trying to figure out how to apply it using servant-multipart. I found here https://hackage.haskell.org/package/servant-multipart-0.12.1/docs/src/Servant.Multipart.html that it uses defaultMultipartOptions which has defaultParseRequestBodyOptions which I probably want to modify here.
I was trying to implement overlapping HasServer (MultipartForm' mods tag a :> sublayout) config instance but it turns out it uses some functions that are not exported from Servant.Multipart. It’s getting trickier. Is there any way to override ParseRequestBodyOptions for that instance?
See also: yesodweb/wai#855
After implementing a tiny service I realized that there is a limit of maximum amount of files which is just 10 files.
I found this option https://hackage.haskell.org/package/wai-extra-3.1.6/docs/Network-Wai-Parse.html#v:setMaxRequestNumFiles and was trying to figure out how to apply it using servant-multipart. I found here https://hackage.haskell.org/package/servant-multipart-0.12.1/docs/src/Servant.Multipart.html that it uses
defaultMultipartOptionswhich hasdefaultParseRequestBodyOptionswhich I probably want to modify here.I was trying to implement overlapping
HasServer (MultipartForm' mods tag a :> sublayout) configinstance but it turns out it uses some functions that are not exported fromServant.Multipart. It’s getting trickier. Is there any way to overrideParseRequestBodyOptionsfor that instance?See also: yesodweb/wai#855