Skip to content

Commit

Permalink
Merge pull request yesodweb#14 from lightraven24/file-upload-limit-in…
Browse files Browse the repository at this point in the history
…crease

file-upload: Set maximumContentLength to 200M for images.
  • Loading branch information
psibi authored Sep 17, 2016
2 parents a0d9282 + 8705d66 commit 46f1176
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 46f1176

Please sign in to comment.