From 8705d66c931c1f73cae8a5edf231c27c7186c15e Mon Sep 17 00:00:00 2001 From: lightraven24 Date: Sat, 17 Sep 2016 14:19:00 +0000 Subject: [PATCH] file-upload: Set maximumContentLength to 200M for images. --- cookbook/Cookbook-file-upload-saving-files-to-server.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/Cookbook-file-upload-saving-files-to-server.md b/cookbook/Cookbook-file-upload-saving-files-to-server.md index b407ba2..d9dbd33 100644 --- a/cookbook/Cookbook-file-upload-saving-files-to-server.md +++ b/cookbook/Cookbook-file-upload-saving-files-to-server.md @@ -47,7 +47,8 @@ mkYesod "App" [parseRoutes| /static StaticR Static getStatic |] -instance Yesod App +instance Yesod App where + maximumContentLength _ (Just ImagesR) = Just $ 200 * 1024 * 1024 -- 200 megabytes instance YesodPersist App where type YesodPersistBackend App = SqlBackend