From 5611ae7ca27537561466ad09fffa42c889a07994 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 3 Jul 2018 19:10:54 +0200 Subject: [PATCH] Increase maximum file upload size --- src/Foundation.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Foundation.hs b/src/Foundation.hs index 97a28fb29..0af04d01f 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -400,6 +400,8 @@ instance Yesod UniWorX where 120 -- timeout in minutes "client_session_key.aes" + maximumContentLength _ _ = Just $ 50 * 2^20 + -- Yesod Middleware allows you to run code before and after each handler function. -- The defaultYesodMiddleware adds the response header "Vary: Accept, Accept-Language" and performs authorization checks. -- Some users may also want to add the defaultCsrfMiddleware, which: