Hello everyone,
I am having some trouble uploading large file with https enabled on Phoenix 1.6
It seems to be related to ssl, as the http support large files, but not https.
I have tried some config…
# In the endpoint
plug Plug.Parsers,
# parsers: [:urlencoded, :multipart, :json],
parsers: [
:urlencoded,
{ :multipart, length: 100_000_000_000 },
:json
],
# In config/dev.exs
https: [
port: 4001,
protocol_options: [
idle_timeout: 6_000_000,
request_timeout: 6_000_000,
],
cipher_suite: :strong,
certfile: "priv/cert/selfsigned.pem",
keyfile: "priv/cert/selfsigned_key.pem",
otp_app: :uploads_mvp
],
# In config/config.exs, for waffle
# Waffle
config :waffle,
storage: Waffle.Storage.Local,
asset_host: "localhost:4000",
# Increase waffle timeout
# https://github.com/elixir-waffle/waffle/issues/63
# version_timeout: 120_000
version_timeout: 6_000_000
but when uploading on https, browser seems to hang (firefox, chrome) without warning or error
There is this related unsolved topic…
Does anyone have the same issue? It’s hard to debug because there are no logged error.
I made a sample repo to illustrate…
Thanks for taking time