Hi
I can upload images and documents, but the filesize limit is too small.
Request Entity Too Large\r\n413 Request Entity Too Large\r\nnginx\r\n", name: “AjaxError”, stack: "@
Where do I change that?
Hi
I can upload images and documents, but the filesize limit is too small.
Request Entity Too Large\r\n413 Request Entity Too Large\r\nnginx\r\n", name: “AjaxError”, stack: "@
Where do I change that?
Looks like nginx is blocking it
Does the start of your conf file look something like.
server {
listen 80;
server_name localhost;
# Allow large uploads (e.g., 128 MB)
client_max_body_size 128M;
The farmOS Docker image configures PHP to allow 100 M file uploads (and post body sizes): farmOS/docker/conf.d/farmOS-recommended.ini at 4.x · farmOS/farmOS · GitHub
If you are not using the Docker image, then you’ll need to manually configure that in PHP.
If you use Nginx as a reverse proxy then you will need to configure it at that layer too, like @Farmer-Ed described.
Hah.. That was it.
And thank’s @mstenta for mentioning reverse proxy.
I use my Yunohost server as reverse proxy for my FarmOS (docker), so I had to add client_max_body_size in that config-file.