changed maximum upload size

This commit is contained in:
nek0 2014-09-04 00:19:07 +02:00
parent 99398c1ecf
commit eb22685597

View file

@ -57,6 +57,9 @@ type Form x = Html -> MForm (HandlerT App IO) (FormResult x, Widget)
instance Yesod App where instance Yesod App where
approot = ApprootMaster $ appRoot . settings approot = ApprootMaster $ appRoot . settings
-- change maximum content length
maximumContentLength _ _ = Just $ 1024 ^ 5
-- Store session data on the client in encrypted cookies, -- Store session data on the client in encrypted cookies,
-- default session idle timeout is 120 minutes -- default session idle timeout is 120 minutes
makeSessionBackend _ = fmap Just $ defaultClientSessionBackend makeSessionBackend _ = fmap Just $ defaultClientSessionBackend