I installed nextcloud 13 via snap on Ubuntu 16.04.
I have to upload huge files. Now I would like to increase the max upload size (now at 10G) and the timeout (now at 3600 seconds). Where do I do that with snap? Is it even possible?
I'm looking at an old (and open) ticket, and it looks like upload size is defined in the Apache config. Which, in a Snap, is read-only.
Yeah, this is a dupe of #77. Please read through that issue, we're actually not entirely sure where the limit is coming from.
Since snap manages the app, one is not able to directly commit changes, it has to do through snap itself. Given the options and commands available in this app, one can just replace underscores with dashes after php in the name of the parameter, like:
And then for the upload size: snap set nextcloud php.post-max-size=16G or sudo if is system-wide.
@eespitiarea I think you have just fixed an issue that has annoyed me and made my Nextcloud instance seem near-unusuable for something like half a year.
Thank you so much! 馃槉 馃挒
Just in case anyone is still struggling like I was when Nextcloud is behind Nginx, it turns out I also needed to set client_max_body_size = 16G; in my Nginx config file on the server or location block :sweat_smile:
Just in case anyone is still struggling like I was when Nextcloud is behind Nginx, it turns out I also needed to set
client_max_body_size = 16G;in my Nginx config file on theserverorlocationblock 馃槄
Thank you for this, you just saved me hours of troubleshooting. I'm using Nginx as a public reverse proxy for my home servers.
Most helpful comment
Since snap manages the app, one is not able to directly commit changes, it has to do through snap itself. Given the options and commands available in this app, one can just replace underscores with dashes after php in the name of the parameter, like:
And then for the upload size:
snap set nextcloud php.post-max-size=16Gorsudoif is system-wide.