# Erreur 413 Request Entity Too Large

**URL:** <https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797>\
**Category:** ℹ️ Support\
**Created:** [September 18, 2022, 2:03pm UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797 "2022-09-18T14:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TuxJul](https://help.nextcloud.com/letter_avatar/tuxjul/32/5_5575768a8748004e209b776fc1b2916d.png) [@TuxJul](https://help.nextcloud.com/u/TuxJul)\
**Post date:** [September 18, 2022, 2:03pm UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797/1 "2022-09-18T14:03:16Z")

</div>

Bonjour,

I use rclone to upload some files via webdav, but I get this error for large files. I tried to change these settings in php.ini :

```nohighlight
upload_max_filesize = 500M -> 16G
post_max_size = 500M -> 16G
max_execution_time = 300 -> 3600
max_input_time = 300 -> 3600

```

But it had no effect. I’ll stick the whole log rclone on you, maybe it will speak to you more than to me 😉

```auto
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.54 (Debian) Server at xxxxxxxxx.xx Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>Taille du fichier attendue : 1494290287 octets mais taille du fichier lue (depuis le client Nextcloud) et écrit (dans le stockage Nextcloud) : 0 octet. Cela peut être un problème de réseau au niveau du client ou un problème de stockage au niveau du serveur.</s:message>
</d:error>: 413 Request Entity Too Large

```

Thank you in advance for your help.  
Jul

---

<div class="post-metadata">

**Author:** ![TuxJul](https://help.nextcloud.com/letter_avatar/tuxjul/32/5_5575768a8748004e209b776fc1b2916d.png) [@TuxJul](https://help.nextcloud.com/u/TuxJul)\
**Post date:** [September 19, 2022, 11:14am UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797/2 "2022-09-19T11:14:18Z")

</div>

I’ve got it!  
After various tests, it turned out that my uploads were limited to exactly 1GB. It was the [LimitRequestBody](https://httpd.apache.org/docs/current/en/mod/core.html#limitrequestbody) parameter, the limiting factor.

So I added at the end of my “nextcloud-le-ssl.conf” file

```auto
LimitRequestBody 0

```

In my case, this must be added in “nextcloud-le-ssl.conf” and not in “nextcloud.conf”.

---

<div class="post-metadata">

**Author:** ![yunyuyuan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/yunyuyuan/32/47515_2.png) [@yunyuyuan](https://help.nextcloud.com/u/yunyuyuan)\
**Post date:** [March 18, 2023, 1:00pm UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797/3 "2023-03-18T13:00:03Z")

</div>

Awesome!!!  
By the way,if you are using docker or docker-compose,suppose you have that volume:

```yaml
volumes:
  - /data/next-cloud:/var/www/html

```

Just append `LimitRequestBody 0` your host machine’s `/data/next-cloud/.htaccess`

---

<div class="post-metadata">

**Author:** ![VSemedo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vsemedo/32/61202_2.png) [@VSemedo](https://help.nextcloud.com/u/VSemedo)\
**Post date:** [July 9, 2024, 1:46pm UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797/4 "2024-07-09T13:46:14Z")

</div>

You are the man! Thanks for this tip! It solve my problem completely after many hours trying different solutions!!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 9:13am UTC](https://help.nextcloud.com/t/erreur-413-request-entity-too-large/145797/5 "2025-01-16T09:13:35Z")

</div>


