Limit multipart upload to 10MB

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-18 14:10:39 +02:00
parent 0a1270b73a
commit c16ef05d88
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -41,7 +41,7 @@ defmodule MobilizonWeb.Endpoint do
plug( plug(
Plug.Parsers, Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser], parsers: [:urlencoded, {:multipart, length: 10_000_000}, :json, Absinthe.Plug.Parser],
pass: ["*/*"], pass: ["*/*"],
json_decoder: Jason json_decoder: Jason
) )