# Max file size in Nextcloud

**URL:** <https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211>\
**Category:** Existing Apps\
**Tags:** nextcloud\
**Created:** [6 June 2022 00:20 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211 "2022-06-06T00:20:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [6 June 2022 00:20 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/1 "2022-06-06T00:20:12Z")

</div>

Hey!

I’m not familiar with the snap version of NextCloud - what is the max file set to - and are we able to change it please?

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [6 June 2022 05:59 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/2 "2022-06-06T05:59:50Z")

</div>

Do you mean this max upload file size?  
[https://docs.nextcloud.com/server/latest/admin\_manual/configuration\_files/big\_file\_upload\_configuration.html](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html)

> \< 2GB on 32Bit OS-architecture

On 32 bit devices you have this limit, but in 64bit you don’t.

What kind of device do you have?

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [6 June 2022 09:22 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/3 "2022-06-06T09:22:55Z")

</div>

Hi Boris, im currently testing using the virtualbox 64bit image. image. I have attached an screenshot when I try to sync my files via the client agent.

![image](https://global.discourse-cdn.com/free1/uploads/syncloud/original/1X/acec37e13d1f83678b5403a4ffe59b649a52987f.png)

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [6 June 2022 12:03 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/4 "2022-06-06T12:03:14Z")

</div>

Is this iphone client?  
Can you try to upload this file instead of sync (not sure if it is possible on iphone)  
Can you copy this file to a desktop and upload there using a browser or desktop nextcloud client?

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [6 June 2022 13:40 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/5 "2022-06-06T13:40:34Z")

</div>

Hi Boris,

Its using the windows client (I had already downloaded the files).

I can confirm via the web interface I can upload large files. Thanks for the suggestion. Ill reinstall the client and try via one of my linux desktops.

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [6 June 2022 14:00 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/6 "2022-06-06T14:00:13Z")

</div>

OK. So, I found that this was selected:  
 ![image](https://global.discourse-cdn.com/free1/uploads/syncloud/original/1X/edf7e7344286250ad8462004319e212adebf46e5.png)  
But was not prompting me - I have deselected and trialed with a new large file and it works.

Ill see how I can have the client re-check all the files and see how i go.

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [6 June 2022 14:02 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/7 "2022-06-06T14:02:53Z")

</div>

Next update, I have forced a sync and now all the files are syncing as they should!

Thanks for your assistance!

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [7 June 2022 06:24 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/8 "2022-06-07T06:24:32Z")

</div>

Another update - Larger files over 4GB via the nextcloud desktop client do indeed fail.

![image](https://global.discourse-cdn.com/free1/uploads/syncloud/original/1X/82d86262939061d363dfa080b5be3ff46e405ff9.png)

Works fine when i directly upload from the web interface. i have tried on two Syncloud server with 2 windows machines.

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [7 June 2022 12:19 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/9 "2022-06-07T12:19:43Z")

</div>

OK, I may have broken this in recent update,

Can you try this:

Create a backup file:

```auto
cp /var/snap/nextcloud/current/config/nginx.conf /var/snap/nextcloud/current/config/nginx.conf.bak

```

Fix the size:

```auto
sed -i 's/client_max_body_size.*/client_max_body_size 50G;/g' /var/snap/nextcloud/current/config/nginx.conf 

```

Restart

```auto
snap restart nextcloud

```

Try to sync again.

---

<div class="post-metadata">

**Author:** ![Ben79](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Ben79](https://syncloud.discourse.group/u/Ben79)\
**Post date:** [7 June 2022 14:32 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/10 "2022-06-07T14:32:47Z")

</div>

Ahh max body size. Yup that did! Syncing is progressing just fine now. Thanks for your quick fix Boris.

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [11 June 2022 18:53 UTC](https://syncloud.discourse.group/t/max-file-size-in-nextcloud/211/11 "2022-06-11T18:53:34Z")

</div>

Pushed the fix to the store
