mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-23 00:58:41 +00:00
Limit multipart upload to 10MB
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0a1270b73a
commit
c16ef05d88
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ defmodule MobilizonWeb.Endpoint do
|
|||
|
||||
plug(
|
||||
Plug.Parsers,
|
||||
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
|
||||
parsers: [:urlencoded, {:multipart, length: 10_000_000}, :json, Absinthe.Plug.Parser],
|
||||
pass: ["*/*"],
|
||||
json_decoder: Jason
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue