# 413 Request Entity Too Large - How do I increase upload file size or remove upload limiter

**URL:** <https://discourse.libretime.org/t/413-request-entity-too-large-how-do-i-increase-upload-file-size-or-remove-upload-limiter/1583>\
**Category:** Get Help\
**Created:** [October 9, 2023, 11:23pm UTC](https://discourse.libretime.org/t/413-request-entity-too-large-how-do-i-increase-upload-file-size-or-remove-upload-limiter/1583 "2023-10-09T23:23:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phemmy22](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/phemmy22/32/737_2.png) [@Phemmy22](https://discourse.libretime.org/u/Phemmy22)\
**Post date:** [October 9, 2023, 11:23pm UTC](https://discourse.libretime.org/t/413-request-entity-too-large-how-do-i-increase-upload-file-size-or-remove-upload-limiter/1583/1 "2023-10-09T23:23:22Z")

</div>

Hello,

**Describe the problem**  
I’ve just installed our first LibreTime instance (non-docker) and everything seems to run fine.  
When I tried to upload music file over 1mb to the Library I get the below error. I am able to upload file over 1mb.

**To reproduce**  
Log in to the Management Interface  
Click “Upload or Drag" files to upload

**Expected behavior**  
An import done successfully

**Relevant log output or error messages**

 413 Request Entity Too Large 
# 413 Request Entity Too Large
 
* * *
nginx/1.18.0 (Ubuntu) 

LibreTime version: 3.1.0

Operating system: Ubuntu 20.04.6

Method: Installer script

Thank you.

---

<div class="post-metadata">

**Author:** ![NessRadio](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/nessradio/32/839_2.png) [@NessRadio](https://discourse.libretime.org/u/NessRadio)\
**Post date:** [October 10, 2023, 9:26am UTC](https://discourse.libretime.org/t/413-request-entity-too-large-how-do-i-increase-upload-file-size-or-remove-upload-limiter/1583/2 "2023-10-10T09:26:50Z")

</div>

Yep. This could be caused by different limitations.

**In my case, it was nginx.conf that blocked the import. Here’s what I did:**

`sudo nano -l /etc/nginx/nginx.conf`

Paste the code below at line 64 before the closing bracket :

```auto
# set client body size to 1000M #
client_max_body_size 1000M;

```

Restart nginx

`sudo systemctl restart nginx`

**It could also come from your PHP upload\_max\_filesize :**

`sudo nano -l /etc/php/7.4/fpm/php.ini`

Find and change for :

line 409:  
`memory_limit = 512M`

line 694:  
`post_max_size = 1000M`

line 846:  
`upload_max_filesize = 500M`

Restart Apache

`sudo systemctl restart php7.4-fpm.service`

---

<div class="post-metadata">

**Author:** ![Phemmy22](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/phemmy22/32/737_2.png) [@Phemmy22](https://discourse.libretime.org/u/Phemmy22)\
**Post date:** [October 10, 2023, 2:39pm UTC](https://discourse.libretime.org/t/413-request-entity-too-large-how-do-i-increase-upload-file-size-or-remove-upload-limiter/1583/3 "2023-10-10T14:39:55Z")

</div>

> [@NessRadio](#):
>
> it was nginx.conf

Cheers Pal.  
It is was the **nginx.conf**

Thank you
