# Increase upload file limit

**URL:** https://support.nitrokey.com/t/increase-upload-file-limit/4932
**Category:** NextBox
**Created:** [March 27, 2023, 5:55am UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932 "2023-03-27T05:55:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![adryanh](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adryanh](https://support.nitrokey.com/u/adryanh)
#### Post date: [March 27, 2023, 5:55am UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932/1 "2023-03-27T05:55:21Z")

</div>

Hey there,  
I’m sharing a folder with some friends where they can drop files (gopro footage). But they can’t upload large files and receive an error message “unkown error”. I figured it might have something to do with a system default file size limit? Cause it says in system settings “Maximale Größe zum Hochladen: _512 MB_”.  
Is that what’s limiting / blocking the upload of files bigger than that value? And if so, how can I change that value?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![daringer](https://support.nitrokey.com/user_avatar/support.nitrokey.com/daringer/32/684_2.png) [@daringer](https://support.nitrokey.com/u/daringer)
#### Post date: [March 31, 2023, 3:43pm UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932/2 "2023-03-31T15:43:45Z")

</div>

Hey @adryanh

the blocking component here is php inside Nextcloud. We have not implemented methods to do this automatically, so without touching the system via ssh there is no way to increase this web(!)-upload limit.

But a common workaround is to use the Nextcloud client app as documented [here](https://docs.nextcloud.com/server/20/admin_manual/configuration_files/big_file_upload_configuration.html), which uploads files in smaller chunks.

best

---

<div class="post-metadata">

### Author: ![jeppe](https://support.nitrokey.com/user_avatar/support.nitrokey.com/jeppe/32/1461_2.png) [@jeppe](https://support.nitrokey.com/u/jeppe)
#### Post date: [August 6, 2023, 3:21pm UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932/3 "2023-08-06T15:21:18Z")

</div>

Could you explain how to increase max\_upload\_size using ssh?  
I tried to

```auto
export PHP_UPLOAD_LIMIT="16G"

```

and restart docker

```auto
docker restart nextbox-compose_app_1

```

as explained here: [Docker](https://hub.docker.com/_/nextcloud/)

It didn’t change anything.

---

<div class="post-metadata">

### Author: ![puw](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@puw](https://support.nitrokey.com/u/puw)
#### Post date: [January 13, 2025, 8:55am UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932/4 "2025-01-13T08:55:16Z")

</div>

Hey,

I have the same issue with files \> 512MB and I’ve been spending already several hours on searching for a possible solution.

Unfortunately, all solutions applying for Nextcloud do not work, since there are several docker containers on the NextBox and I’ve been not able to find the php.ini or the corresponding docker environment file for setting the environment variables.

Have you been able to fix the issue?

---

<div class="post-metadata">

### Author: ![lothar](https://support.nitrokey.com/user_avatar/support.nitrokey.com/lothar/32/813_2.png) [@lothar](https://support.nitrokey.com/u/lothar)
#### Post date: [January 14, 2025, 8:25am UTC](https://support.nitrokey.com/t/increase-upload-file-limit/4932/5 "2025-01-14T08:25:44Z")

</div>

See my answer here: [Memory size exhausted - #3 by lothar](https://support.nitrokey.com/t/memory-size-exhausted/6561/3) (It’s in German, but I guess you’ll get the idea. Or use any translation tool of your choosing.)  
Two notes: I refuse any responsibility if anything goes sideways. 😉 After a Nextcloud/-Box upgrade, the settings will be gone again.
