Skip to content

Commit

Permalink
file-upload: Set maximumContentLength to 200M for images.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightraven24 committed Sep 17, 2016
1 parent a0d9282 commit 8705d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbook/Cookbook-file-upload-saving-files-to-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8705d66

Please sign in to comment.