sc4224
1
Running into an issue with uploading files to phoenix graphql server. Not sure how to go about increasing the file size limit on server.
I get this error on the frontend:
I attempted to increase limit in my app endpoint:
plug Plug.Parsers,
parsers: [:urlencoded, {:multipart, length: 20000000}, :json],
query_string_length: 1000000,
pass: ["*/*"],
json_decoder: Phoenix.json_library()
Not sure what else to do, anybody with graphql absinthe file size configuration experience here?
Try to add length, at the end…
plug Plug.Parsers,
parsers: [:urlencoded, {:multipart, length: 20000000}, :json],
query_string_length: 1000000,
pass: ["*/*"],
json_decoder: Phoenix.json_library(),
length: 100_000_000
1 Like
sc4224
3
Found out that it was because i did not set client_max_body_size 10M; in nginx.conf file. After doing so, error goes away.
Now i’m encountering a different error, 501 (not implemented). Not sure what is the cause of this, but it doesn’t hit my phoenix api.
1 Like