this is how the assings look
I am trying to upload an file in form data
%{
conn: %Plug.Conn{
adapter: {Plug.Adapters.Cowboy.Conn, :...},
assigns: %{
kind: :error,
layout: false,
reason: %Plug.Parsers.RequestTooLargeError{
message: "the request is too large. If you are willing to process larger requests, please give a :length to Plug.Parsers",
plug_status: 413
},
stack: [
{Plug.Parsers, :reduce, 7, [file: 'lib/plug/parsers.ex', line: 279]},
{DotooEndpoint.Endpoint, :plug_builder_call, 2,
[file: 'lib/xd_endpoint/endpoint.ex', line: 1]},
{DotooEndpoint.Endpoint, :call, 2,
[file: 'lib/xd_endpoint/endpoint.ex', line: 1]},
{Plug.Adapters.Cowboy.Handler, :upgrade, 4,
[file: 'lib/plug/cowboy/handler.ex', line: 18]},
{:cowboy_protocol, :execute, 4,
[
file: '/application/xd_umbrella/deps/cowboy/src/cowboy_protocol.erl',
line: 442
]}
]
},
before_send: [],
body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies},
halted: false,
host: "localhost",
method: "POST",
owner: #PID<0.595.0>,
params: %{},
path_info: ["topics", "4gvJMZkdbBpN0e65", "post_attachment"],
path_params: %{},
port: 4000,
private: %{
phoenix_endpoint: XD.Endpoint,
phoenix_format: "html",
phoenix_layout: false,
phoenix_template: "413.html",
phoenix_view: XD.ErrorView
},
query_params: %{},
query_string: "",
remote_ip: {0, 0, 0, 0, 0, 65535, 44051, 1},
req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [
{"authorization",
"Bearer xxx"},
{"content-type",
"multipart/form-data; boundary=--------------------------773415269124190613492413"},
{"cache-control", "no-cache"},
{"postman-token", "88c8a61c-ed3e-4002-925e-e0caf67e338f"},
{"user-agent", "PostmanRuntime/7.6.0"},
{"accept", "*/*"},
{"host", "localhost:4000"},
{"accept-encoding", "gzip, deflate"},
{"content-length", "31457602"},
{"connection", "keep-alive"}
],
request_path: "/topics/4gvJMZkdbBpN0e65/post_attachment",
resp_body: nil,
resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http,
script_name: [],
secret_key_base: :...,
state: :unset,
status: 413
},
kind: :error,
reason: %Plug.Parsers.RequestTooLargeError{
message: "the request is too large. If you are willing to process larger requests, please give a :length to Plug.Parsers",
plug_status: 413
},
stack: [
{Plug.Parsers, :reduce, 7, [file: 'lib/plug/parsers.ex', line: 279]},
{XDEndpoint.Endpoint, :plug_builder_call, 2,
[file: 'lib/xd_endpoint/endpoint.ex', line: 1]},
{XDEndpoint.Endpoint, :call, 2,
[file: 'lib/xd_endpoint/endpoint.ex', line: 1]},
{Plug.Adapters.Cowboy.Handler, :upgrade, 4,
[file: 'lib/plug/cowboy/handler.ex', line: 18]},
{:cowboy_protocol, :execute, 4,
[
file: '/application/xd_umbrella/deps/cowboy/src/cowboy_protocol.erl',
line: 442
]}
],
view_module: XDEndpoint.ErrorView,
view_template: "413.html"
}