Limit multipart upload to 10MB
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
185306e991
commit
0f43a71eb0
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user