"I can't upload large files even though I changed `maxFileSize`"
"check your reverse proxy, it may have a limit of its own"
nginx has client_max_body_size
, which some distributions may set by default.
Designs
- Show closed items
Related merge requests 1
When this merge request is accepted, this issue will be closed automatically.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
which some distributions may set by default.
Note that the distributions that don't set it will have an even lower limit. The actual default from nginx when
client_max_body_size
is unset is1M
. The default value will practically always be too small for large media uploads, even if the distro increases the default from1M
.Perhaps it could also be possible to differentiate the response from Sharkey blocking the upload and nginx blocking the upload, and show a slightly different message if Sharkey didn't create the error?
Collapse replies ah, thank you for that detail! (I run Apache, so I'm not familiar with nginx)
differentiating the response: not really (the code responsible for that is delegating to
@fastify/multipart
which then delegates to@fastify/busboy
and it's not clear if we can customise the error responses)- Please register or sign in to reply
- dakkar added in progress label
added in progress label
- dakkar mentioned in merge request !27 (merged)
mentioned in merge request !27 (merged)
- dakkar closed with merge request !27 (merged)
closed with merge request !27 (merged)