WebDav client Can't upload files >1 MB in NC15

Hey Guys,

I just wanted to publish my solution, especially because I’m using Apache as webserver. I wasted now almost a whole day to find this actually obvious solution, so I hope this helps one or the other to solve the problem quicker:
In my case it was the “LimitRequestBody” function of Apache. After i changed it from default to “0” (=unlimited) it works fine now!

You can do this rather in the “/etc/apache2/sites-available/nextcloud.conf” (respectively corresponding file) or directly in the “.htaccess” of your NC installation root directory. The first one is the better way I think, because it’s update-save.

Code-Example for “/etc/apache2/sites-available/nextcloud.conf”:

<Directory /var/www/nextcloud/>
      Options +FollowSymlinks +Includes
      LimitRequestBody 0
      AllowOverride All

      <IfModule mod_dav.c>
        Dav off
      </IfModule>

      SetEnv HOME /var/www/nextcloud
      SetEnv HTTP_HOME /var/www/nextcloud
</Directory>