You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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 hasdefaultParseRequestBodyOptions
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 fromServant.Multipart
. It’s getting trickier. Is there any way to overrideParseRequestBodyOptions
for that instance?See also: yesodweb/wai#855
The text was updated successfully, but these errors were encountered: