<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Increase upload max size in Nextcloud]]></title><description><![CDATA[<p dir="auto">I'm getting an error when I try to upload large files (it won't tell me which file is failing so I'm not exactly sure how large) to Nextcloud. I think it has something to do with a general php setting (php.ini) and not something set in Nextcloud itself but I have no experience with php so I'm not sure.</p>
<p dir="auto"><img src="https://www.libreshack.net/nextcloud-php.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think if I can get the associated attribute here "Upload max size" to increase it will solve my problem but I don't know how to set it. This is under settings -&gt; administration -&gt; system</p>
]]></description><link>https://forum.cloudron.io/topic/2921/increase-upload-max-size-in-nextcloud</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 12:53:58 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2921.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Jul 2020 18:03:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 18:50:03 GMT]]></title><description><![CDATA[<p dir="auto">Okay, so after some testing I still don’t know why the changes in htaccess disappear.<br />
But on one server it works fine, and on the other it reports a 5 GB file size limit — no idea why.<br />
At least normal uploads in the web interface now work.</p>
<p dir="auto">However, all my previous tests failed because I was always testing with a shared link that has edit rights.<br />
With that, I still get a 413 error and the following message:</p>
<p dir="auto">BadRequest – Expected file size of 3099309687 bytes, but 0 bytes were read (from the Nextcloud client) and written (to the Nextcloud storage). This can be caused by a network issue on the sending side or a writing issue on the server side.</p>
<p dir="auto">So it seems that the upload limit only works for regular logged-in uploads, but not for uploads via share links.</p>
<p dir="auto">Any idea what might cause this difference? Guess this is a nextcloud issue.</p>
]]></description><link>https://forum.cloudron.io/post/115719</link><guid isPermaLink="true">https://forum.cloudron.io/post/115719</guid><dc:creator><![CDATA[SolarSimon]]></dc:creator><pubDate>Thu, 20 Nov 2025 18:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 18:23:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/solarsimon" aria-label="Profile: SolarSimon">@<bdi>SolarSimon</bdi></a> said in <a href="/post/115708">Increase upload max size in Nextcloud</a>:</p>
<blockquote>
<p dir="auto">But it’s still a bit strange. I see two htaccess files: one under /mnt/volumes/ and one under /home/yellowtent/appsdata/.</p>
</blockquote>
<p dir="auto">Yes, confusing... There's two htaccess in nextcloud:</p>
<p dir="auto"><code>/app/data/htaccess</code> - this one is for the nextcloud code (symlinked from /app/code/.htaccess) . nextcloud wants this writable since it patches this at runtime</p>
<p dir="auto"><code>/app/data/data/.htaccess</code> - this is for the data directory (i.e user files of nextcloud) which is <code>/app/data/data</code> by default. Here's the confusing part: in old nextcloud packages, the data directory was <code>/app/data</code> (by mistake) . This meant that <code>/app/data/.htaccess</code> was present, and we ended up with 2 htaccess files one with a dot and one without it.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> maybe something for the docs?</p>
]]></description><link>https://forum.cloudron.io/post/115718</link><guid isPermaLink="true">https://forum.cloudron.io/post/115718</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Thu, 20 Nov 2025 18:23:58 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 16:35:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/solarsimon" aria-label="Profile: SolarSimon">@<bdi>SolarSimon</bdi></a><br />
Please use the Web Terminal or the File Manager of your app to edit the <code>htaccess</code> file.</p>
]]></description><link>https://forum.cloudron.io/post/115711</link><guid isPermaLink="true">https://forum.cloudron.io/post/115711</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Thu, 20 Nov 2025 16:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 15:38:26 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the hint! I noticed the mistake and deleted my previous post—sorry about that.</p>
<p dir="auto">But it’s still a bit strange. I see two htaccess files: one under /mnt/volumes/ and one under /home/yellowtent/appsdata/.</p>
<p dir="auto">If I modify the htaccess under /mnt/volumes/, it has no effect.</p>
<p dir="auto">If I modify the htaccess under /home/yellowtent/appsdata/, the changes are gone after an app restart—the entries disappear. I’m editing the file via terminal with nano.</p>
<p dir="auto">My data directory is located at /media/storagebox.</p>
<p dir="auto">Any clue?</p>
]]></description><link>https://forum.cloudron.io/post/115708</link><guid isPermaLink="true">https://forum.cloudron.io/post/115708</guid><dc:creator><![CDATA[SolarSimon]]></dc:creator><pubDate>Thu, 20 Nov 2025 15:38:26 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 14:13:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/solarsimon" aria-label="Profile: SolarSimon">@<bdi>SolarSimon</bdi></a><br />
What <code>.htaccess</code> file did you modify? It should be <code>/app/data/htaccess</code>.<br />
And the default <code>/app/data/htaccess</code> looks completely different to what you have posted. Did you only post a chunk of that file?<br />
Here is the <code>/app/data/htaccess</code> file from a fresh installed Nextcloud app:</p>
<pre><code>&lt;IfModule mod_headers.c&gt;
  &lt;IfModule mod_setenvif.c&gt;
    &lt;IfModule mod_fcgid.c&gt;
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
    &lt;IfModule mod_proxy_fcgi.c&gt;
       SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
    &lt;/IfModule&gt;
    &lt;IfModule mod_lsapi.c&gt;
      SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
      RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;

  &lt;IfModule mod_env.c&gt;
    # Add security and privacy related headers
    # Avoid doubled headers by unsetting headers in "onsuccess" table,
    # then add headers to "always" table: https://github.com/nextcloud/server/pull/19002

    &lt;If "%{REQUEST_URI} =~ m#/login$#"&gt;
      # Only on the login page we need any Origin or Referer header set.
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "same-origin"
    &lt;/If&gt;
    &lt;Else&gt;
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "no-referrer"
    &lt;/Else&gt;

    Header onsuccess unset X-Content-Type-Options
    Header always set X-Content-Type-Options "nosniff"

    Header onsuccess unset X-Frame-Options
    Header always set X-Frame-Options "SAMEORIGIN"

    Header onsuccess unset X-Permitted-Cross-Domain-Policies
    Header always set X-Permitted-Cross-Domain-Policies "none"

    Header onsuccess unset X-Robots-Tag
    Header always set X-Robots-Tag "noindex, nofollow"

    SetEnv modHeadersAvailable true
  &lt;/IfModule&gt;

  # Add cache control for static resources
  &lt;FilesMatch "\.(css|js|mjs|svg|gif|png|jpg|webp|ico|wasm|tflite)$"&gt;
    &lt;If "%{QUERY_STRING} =~ /(^|&amp;)v=/"&gt;
      Header set Cache-Control "max-age=15778463, immutable"
    &lt;/If&gt;
    &lt;Else&gt;
      Header set Cache-Control "max-age=15778463"
    &lt;/Else&gt;
  &lt;/FilesMatch&gt;

  # Let browsers cache OTF and WOFF files for a week
  &lt;FilesMatch "\.(otf|woff2?)$"&gt;
    Header set Cache-Control "max-age=604800"
  &lt;/FilesMatch&gt;
&lt;/IfModule&gt;

&lt;IfModule mod_php.c&gt;
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  &lt;IfModule mod_env.c&gt;
    SetEnv htaccessWorking true
  &lt;/IfModule&gt;
&lt;/IfModule&gt;

&lt;IfModule mod_mime.c&gt;
  AddType image/svg+xml svg svgz
  AddType application/wasm wasm
  AddEncoding gzip svgz
  # Serve ESM javascript files (.mjs) with correct mime type
  AddType text/javascript js mjs
&lt;/IfModule&gt;

&lt;IfModule mod_dir.c&gt;
  DirectoryIndex index.php index.html
&lt;/IfModule&gt;

&lt;IfModule pagespeed_module&gt;
  ModPagespeed Off
&lt;/IfModule&gt;

&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond %{HTTP_USER_AGENT} DavClnt
  RewriteRule ^$ /remote.php/webdav/ [L,R=302]
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^\.well-known/carddav https://%{HTTP_HOST}/remote.php/dav/ [R=301,L]
  RewriteRule ^\.well-known/caldav https://%{HTTP_HOST}/remote.php/dav/ [R=301,L]
  RewriteRule ^remote/(.*) remote.php [QSA,L]
  RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L]
  RewriteRule ^ocm-provider/?$ index.php [QSA,L]
  RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]
&lt;/IfModule&gt;

# Clients like xDavv5 on Android, or Cyberduck, use chunked requests.
# When FastCGI or FPM is used with apache, requests arrive to Nextcloud without any content.
# This leads to the creation of empty files.
# The following directive will force the problematic requests to be buffered before being forwarded to Nextcloud.
# This way, the "Transfer-Encoding" header is removed, the "Content-Length" header is set, and the request content is proxied to Nextcloud.
# Here are more information about the issue:
#  - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
#  - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
&lt;IfModule mod_setenvif.c&gt;
  SetEnvIfNoCase Transfer-Encoding "chunked" proxy-sendcl=1
&lt;/IfModule&gt;

# Apache disabled the sending of the server-side content-length header
# in their 2.4.59 patch updated which breaks some use-cases in Nextcloud.
# Setting ap_trust_cgilike_cl allows to bring back the usual behaviour.
# See https://bz.apache.org/bugzilla/show_bug.cgi?id=68973
&lt;IfModule mod_env.c&gt;
  SetEnv ap_trust_cgilike_cl
&lt;/IfModule&gt;

AddDefaultCharset utf-8
Options -Indexes
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /index.php/error/403
ErrorDocument 404 /index.php/error/404
&lt;IfModule mod_rewrite.c&gt;
  Options -MultiViews
  RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
  RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
  RewriteCond %{REQUEST_FILENAME} !\.(css|js|mjs|svg|gif|ico|jpg|jpeg|png|webp|html|otf|ttf|woff2?|map|webm|mp4|mp3|ogg|wav|flac|wasm|tflite)$
  RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\.php
  RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\.ico|manifest\.json)$
  RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\.php
  RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2)\.php
  RewriteCond %{REQUEST_FILENAME} !/robots\.txt
  RewriteCond %{REQUEST_FILENAME} !/(ocs-provider|updater)/
  RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
  RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$
  RewriteRule . index.php [PT,E=PATH_INFO:$1]
  RewriteBase /
  &lt;IfModule mod_env.c&gt;
    SetEnv front_controller_active true
    &lt;IfModule mod_dir.c&gt;
      DirectorySlash off
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>
<p dir="auto">With assuming, you only posted a chunk, I can see that you have added:</p>
<pre><code>    php_value upload_max_filesize 10G
    php_value post_max_size 10G
    php_value max_input_time 3600
    php_value max_execution_time 3600
</code></pre>
<p dir="auto">in the wrong section in the <code>/app/data/htaccess</code> file.</p>
<p dir="auto">It should be like this:</p>
<pre><code>&lt;IfModule mod_headers.c&gt;
  &lt;IfModule mod_setenvif.c&gt;
    &lt;IfModule mod_fcgid.c&gt;
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
    &lt;IfModule mod_proxy_fcgi.c&gt;
       SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
    &lt;/IfModule&gt;
    &lt;IfModule mod_lsapi.c&gt;
      SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
      RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;

  &lt;IfModule mod_env.c&gt;
    # Add security and privacy related headers
    # Avoid doubled headers by unsetting headers in "onsuccess" table,
    # then add headers to "always" table: https://github.com/nextcloud/server/pull/19002

    &lt;If "%{REQUEST_URI} =~ m#/login$#"&gt;
      # Only on the login page we need any Origin or Referer header set.
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "same-origin"
    &lt;/If&gt;
    &lt;Else&gt;
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "no-referrer"
    &lt;/Else&gt;

    Header onsuccess unset X-Content-Type-Options
    Header always set X-Content-Type-Options "nosniff"

    Header onsuccess unset X-Frame-Options
    Header always set X-Frame-Options "SAMEORIGIN"

    Header onsuccess unset X-Permitted-Cross-Domain-Policies
    Header always set X-Permitted-Cross-Domain-Policies "none"

    Header onsuccess unset X-Robots-Tag
    Header always set X-Robots-Tag "noindex, nofollow"

    SetEnv modHeadersAvailable true
  &lt;/IfModule&gt;

  # Add cache control for static resources
  &lt;FilesMatch "\.(css|js|mjs|svg|gif|png|jpg|webp|ico|wasm|tflite)$"&gt;
    &lt;If "%{QUERY_STRING} =~ /(^|&amp;)v=/"&gt;
      Header set Cache-Control "max-age=15778463, immutable"
    &lt;/If&gt;
    &lt;Else&gt;
      Header set Cache-Control "max-age=15778463"
    &lt;/Else&gt;
  &lt;/FilesMatch&gt;

  # Let browsers cache OTF and WOFF files for a week
  &lt;FilesMatch "\.(otf|woff2?)$"&gt;
    Header set Cache-Control "max-age=604800"
  &lt;/FilesMatch&gt;
&lt;/IfModule&gt;

&lt;IfModule mod_php.c&gt;
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  php_value upload_max_filesize 10G
  php_value post_max_size 10G
  php_value max_input_time 3600
  php_value max_execution_time 3600
  &lt;IfModule mod_env.c&gt;
    SetEnv htaccessWorking true
  &lt;/IfModule&gt;
&lt;/IfModule&gt;

&lt;IfModule mod_mime.c&gt;
  AddType image/svg+xml svg svgz
  AddType application/wasm wasm
  AddEncoding gzip svgz
  # Serve ESM javascript files (.mjs) with correct mime type
  AddType text/javascript js mjs
&lt;/IfModule&gt;

&lt;IfModule mod_dir.c&gt;
  DirectoryIndex index.php index.html
&lt;/IfModule&gt;

&lt;IfModule pagespeed_module&gt;
  ModPagespeed Off
&lt;/IfModule&gt;

&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond %{HTTP_USER_AGENT} DavClnt
  RewriteRule ^$ /remote.php/webdav/ [L,R=302]
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^\.well-known/carddav https://%{HTTP_HOST}/remote.php/dav/ [R=301,L]
  RewriteRule ^\.well-known/caldav https://%{HTTP_HOST}/remote.php/dav/ [R=301,L]
  RewriteRule ^remote/(.*) remote.php [QSA,L]
  RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L]
  RewriteRule ^ocm-provider/?$ index.php [QSA,L]
  RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]
&lt;/IfModule&gt;

# Clients like xDavv5 on Android, or Cyberduck, use chunked requests.
# When FastCGI or FPM is used with apache, requests arrive to Nextcloud without any content.
# This leads to the creation of empty files.
# The following directive will force the problematic requests to be buffered before being forwarded to Nextcloud.
# This way, the "Transfer-Encoding" header is removed, the "Content-Length" header is set, and the request content is proxied to Nextcloud.
# Here are more information about the issue:
#  - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
#  - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
&lt;IfModule mod_setenvif.c&gt;
  SetEnvIfNoCase Transfer-Encoding "chunked" proxy-sendcl=1
&lt;/IfModule&gt;

# Apache disabled the sending of the server-side content-length header
# in their 2.4.59 patch updated which breaks some use-cases in Nextcloud.
# Setting ap_trust_cgilike_cl allows to bring back the usual behaviour.
# See https://bz.apache.org/bugzilla/show_bug.cgi?id=68973
&lt;IfModule mod_env.c&gt;
  SetEnv ap_trust_cgilike_cl
&lt;/IfModule&gt;

AddDefaultCharset utf-8
Options -Indexes
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /index.php/error/403
ErrorDocument 404 /index.php/error/404
&lt;IfModule mod_rewrite.c&gt;
  Options -MultiViews
  RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
  RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
  RewriteCond %{REQUEST_FILENAME} !\.(css|js|mjs|svg|gif|ico|jpg|jpeg|png|webp|html|otf|ttf|woff2?|map|webm|mp4|mp3|ogg|wav|flac|wasm|tflite)$
  RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\.php
  RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\.ico|manifest\.json)$
  RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\.php
  RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2)\.php
  RewriteCond %{REQUEST_FILENAME} !/robots\.txt
  RewriteCond %{REQUEST_FILENAME} !/(ocs-provider|updater)/
  RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
  RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$
  RewriteRule . index.php [PT,E=PATH_INFO:$1]
  RewriteBase /
  &lt;IfModule mod_env.c&gt;
    SetEnv front_controller_active true
    &lt;IfModule mod_dir.c&gt;
      DirectorySlash off
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>
<p dir="auto">To make it more visual please see: <a href="https://www.diffchecker.com/3aKUL3fu/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.diffchecker.com/3aKUL3fu/</a></p>
<hr />
<p dir="auto">Editorial note:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/solarsimon" aria-label="Profile: SolarSimon">@<bdi>SolarSimon</bdi></a> I have restored you last post to keep the context intact for future readers.</p>
]]></description><link>https://forum.cloudron.io/post/115704</link><guid isPermaLink="true">https://forum.cloudron.io/post/115704</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Thu, 20 Nov 2025 14:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 20 Nov 2025 14:05:05 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, that’s strange. I modified the .htaccess file as described, but the upload limit is still capped at 512 MB. I also restarted the app/server after making the changes. Any idea what else I might be missing?<br />
My htaccess:</p>
<pre><code>&lt;IfModule mod_headers.c&gt;
  &lt;IfModule mod_setenvif.c&gt;
    &lt;IfModule mod_fcgid.c&gt;
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
    &lt;IfModule mod_proxy_fcgi.c&gt;
       SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
    &lt;/IfModule&gt;
    &lt;IfModule mod_lsapi.c&gt;
      SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
      RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;

  &lt;IfModule mod_env.c&gt;
    # Add security and privacy related headers
    # Avoid doubled headers by unsetting headers in "onsuccess" table,
    # then add headers to "always" table: https://github.com/nextcloud/server/pull/19002
    php_value upload_max_filesize 10G
    php_value post_max_size 10G
    php_value max_input_time 3600
    php_value max_execution_time 3600

    &lt;If "%{REQUEST_URI} =~ m#/login$#"&gt;
      # Only on the login page we need any Origin or Referer header set.
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "same-origin"
    &lt;/If&gt;
    &lt;Else&gt;
      Header onsuccess unset Referrer-Policy
      Header always set Referrer-Policy "no-referrer"
    &lt;/Else&gt;

    Header onsuccess unset X-Content-Type-Options
    Header always set X-Content-Type-Options "nosniff"

    Header onsuccess unset X-Frame-Options
    Header always set X-Frame-Options "SAMEORIGIN"

    Header onsuccess unset X-Permitted-Cross-Domain-Policies
    Header always set X-Permitted-Cross-Domain-Policies "none"

    Header onsuccess unset X-Robots-Tag
    Header always set X-Robots-Tag "noindex, nofollow"

    Header onsuccess unset X-XSS-Protection
    Header always set X-XSS-Protection "1; mode=block"

    SetEnv modHeadersAvailable true
  &lt;/IfModule&gt;
</code></pre>
]]></description><link>https://forum.cloudron.io/post/115700</link><guid isPermaLink="true">https://forum.cloudron.io/post/115700</guid><dc:creator><![CDATA[SolarSimon]]></dc:creator><pubDate>Thu, 20 Nov 2025 14:05:05 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Wed, 19 Nov 2025 18:59:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/solarsimon" aria-label="Profile: SolarSimon">@<bdi>SolarSimon</bdi></a></p>
<p dir="auto">Yes you can still use the described method with editing the <code>/app/data/htaccess</code> file.<br />
Example excerpt from the <code>/app/data/htaccess</code> file limiting the upload to 1 KB:</p>
<pre><code class="language-bash">&lt;IfModule mod_php.c&gt;
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  php_value upload_max_filesize 1K
  &lt;IfModule mod_env.c&gt;
    SetEnv htaccessWorking true
  &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>
<p dir="auto">This can then also be checked in <code>https://$YOUR-DOMAIN/settings/admin/serverinfo</code>:</p>
<p dir="auto"><img src="/assets/uploads/files/1763578747779-78631002-eb0e-4998-9cdd-560c42ce0d3f-image-resized.png" alt="78631002-eb0e-4998-9cdd-560c42ce0d3f-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/115655</link><guid isPermaLink="true">https://forum.cloudron.io/post/115655</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 19 Nov 2025 18:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Wed, 19 Nov 2025 13:59:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
I followed this discription:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said in <a href="/post/11327">Increase upload max size in Nextcloud</a>:</p>
<blockquote>
<p dir="auto">You can edit the htaccess file using the file manager into the app or the /app/data/htaccess file when using the webterminal and add</p>
<p dir="auto">php_value upload_max_filesize 10G</p>
<p dir="auto">to the &lt;IfModule mod_php7.c&gt; section (adjust the 10G to whatever works for your case)</p>
<p dir="auto">Then just refresh the browser and you should see the value updated.</p>
</blockquote>
<p dir="auto">Is this still the correct and up-to-date method in the current Cloudron Nextcloud app?<br />
Or has anything changed with newer PHP or app versions?</p>
<p dir="auto">I also tried the instructions from the official documentation:<br />
<a href="https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html</a></p>
<blockquote>
<p dir="auto">Nextcloud comes with its own nextcloud/.htaccess file. Because php-fpm can’t read PHP settings in .htaccess these settings must be set in the nextcloud/.user.ini file.</p>
</blockquote>
<p dir="auto">Does this also apply to Nextcloud on Cloudron?<br />
If so, where is the .user.ini file located within the Cloudron setup?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/115632</link><guid isPermaLink="true">https://forum.cloudron.io/post/115632</guid><dc:creator><![CDATA[SolarSimon]]></dc:creator><pubDate>Wed, 19 Nov 2025 13:59:31 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Tue, 11 May 2021 18:33:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rcdncn" aria-label="Profile: rcdncn">@<bdi>rcdncn</bdi></a></p>
<p dir="auto">An update. I goofed and it's working now. My first try I navigated to app/data/.htaccess and there was no</p>
<pre><code>&lt;IfModule mod_php7.c&gt;
</code></pre>
<p dir="auto">I noticed that there is both and htaccess and a .htaccess and I was in the incorrect file.</p>
]]></description><link>https://forum.cloudron.io/post/31165</link><guid isPermaLink="true">https://forum.cloudron.io/post/31165</guid><dc:creator><![CDATA[rcdncn]]></dc:creator><pubDate>Tue, 11 May 2021 18:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Tue, 11 May 2021 18:26:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I just tried this myself and when I refreshed the browser the the php value did not update. I don't have to restart any services for this to take effect?</p>
]]></description><link>https://forum.cloudron.io/post/31164</link><guid isPermaLink="true">https://forum.cloudron.io/post/31164</guid><dc:creator><![CDATA[rcdncn]]></dc:creator><pubDate>Tue, 11 May 2021 18:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Tue, 04 Aug 2020 23:34:06 GMT]]></title><description><![CDATA[<p dir="auto">This is fixed in 5.5. Should be out late this week or early next week.</p>
]]></description><link>https://forum.cloudron.io/post/11774</link><guid isPermaLink="true">https://forum.cloudron.io/post/11774</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 04 Aug 2020 23:34:06 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 23 Jul 2020 20:39:16 GMT]]></title><description><![CDATA[<p dir="auto">Indeed that is a known bug and you can track that at <a href="https://git.cloudron.io/cloudron/box/-/issues/722" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/box/-/issues/722</a><br />
We will fix this hopefully for version 5.5</p>
]]></description><link>https://forum.cloudron.io/post/11332</link><guid isPermaLink="true">https://forum.cloudron.io/post/11332</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 23 Jul 2020 20:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 23 Jul 2020 20:26:32 GMT]]></title><description><![CDATA[<p dir="auto">I think that worked, thanks. By the way, unrelated issue but it looks like the file browser is having trouble. When I go to file manager in Nextcloud config it says "Cloudron error file not found". This apps data was moved to a different disk on the system from the install disk so that might have something to do with it.</p>
<p dir="auto">Anyway I added the setting you said using the console and it seems to be working.</p>
]]></description><link>https://forum.cloudron.io/post/11330</link><guid isPermaLink="true">https://forum.cloudron.io/post/11330</guid><dc:creator><![CDATA[zjuhasz]]></dc:creator><pubDate>Thu, 23 Jul 2020 20:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to Increase upload max size in Nextcloud on Thu, 23 Jul 2020 19:42:32 GMT]]></title><description><![CDATA[<p dir="auto">You can edit the <code>htaccess</code> file using the file manager into the app or the <code>/app/data/htaccess</code> file when using the webterminal and add</p>
<pre><code>php_value upload_max_filesize 10G
</code></pre>
<p dir="auto">to the <code>&lt;IfModule mod_php7.c&gt;</code> section (adjust the 10G to whatever works for your case)</p>
<p dir="auto">Then just refresh the browser and you should see the value updated.</p>
]]></description><link>https://forum.cloudron.io/post/11327</link><guid isPermaLink="true">https://forum.cloudron.io/post/11327</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 23 Jul 2020 19:42:32 GMT</pubDate></item></channel></rss>