# How to increase the upload\_max\_filesize limit

**URL:** <https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138>\
**Category:** Installing my Dolibarr\
**Created:** [June 12, 2020, 6:35pm UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138 "2020-06-12T18:35:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![galvatec](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@galvatec](https://www.dolibarr.org/forum/u/galvatec)\
**Post date:** [June 12, 2020, 6:35pm UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/1 "2020-06-12T18:35:05Z")

</div>

Hello everyone !  
I need to increase the upload\_max\_filesize limit. I changed the php.ini from php 7.3 and the others, but it is not changed in Dolibarr

---

<div class="post-metadata">

**Author:** ![kd1812](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/kd1812/32/2913_2.png) [@kd1812](https://www.dolibarr.org/forum/u/kd1812)\
**Post date:** [June 13, 2020, 12:37am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/2 "2020-06-13T00:37:05Z")

</div>

Hi there!  
I think you should change in Dolibarr too: Home -\> Setup -\> Security -\> File (Uploads). Then you can change the file upload limit.  
Kind regards

---

<div class="post-metadata">

**Author:** ![galvatec](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@galvatec](https://www.dolibarr.org/forum/u/galvatec)\
**Post date:** [June 13, 2020, 1:00am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/3 "2020-06-13T01:00:14Z")

</div>

Thank you very much for responding! I use Dolibarr as a module for Nethserver 7.7.8 so I found that for me to increase the size limit of the uploado file, I needed to execute these commands:

config setprop dolibarr UploadMaxFilesize 8 (8 is a limit em MB)  
signal-event nethserver-dolibarr-update

---

<div class="post-metadata">

**Author:** ![vancrideout](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/vancrideout/32/3218_2.png) [@vancrideout](https://www.dolibarr.org/forum/u/vancrideout)\
**Post date:** [June 15, 2020, 10:52am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/4 "2020-06-15T10:52:05Z")

</div>

Sir can u assist me out? while i install extra then five plungin i can’t access my admin login web page ( massage show : this page is’t now work. ExamplesitedotCom is presently unable to deal with this request. HTTP ERROR 500) and then i visit cpanel n deleted plugins and then my admin loginn page appear. What can i do…I dont recognise its theme hassle or hosting hassle please assist me if somebody recognize a way to restore this issue

---

<div class="post-metadata">

**Author:** ![view22](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/view22/32/3380_2.png) [@view22](https://www.dolibarr.org/forum/u/view22)\
**Post date:** [July 22, 2020, 7:25am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/5 "2020-07-22T07:25:07Z")

</div>

Since I just ran in to this problem on a shared host and was unable to add the values to my .htaccess file I thought I’d share my solution.

I made an ini file with the values in it. Simple as that:

Make a file called “.user.ini” and add your values

```auto
upload_max_filesize = 150M
post_max_size = 150M

```

Boom, problem solved.

---

<div class="post-metadata">

**Author:** ![galvatec](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@galvatec](https://www.dolibarr.org/forum/u/galvatec)\
**Post date:** [September 22, 2020, 10:29am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/6 "2020-09-22T10:29:31Z")

</div>

Problem solved, thanks

---

<div class="post-metadata">

**Author:** ![galvatec](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@galvatec](https://www.dolibarr.org/forum/u/galvatec)\
**Post date:** [September 22, 2020, 10:32am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/7 "2020-09-22T10:32:12Z")

</div>

Which plugin did you install?

---

<div class="post-metadata">

**Author:** ![mikeduke111](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/7ba0ec/32.png) [@mikeduke111](https://www.dolibarr.org/forum/u/mikeduke111)\
**Post date:** [October 14, 2020, 11:07am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/8 "2020-10-14T11:07:02Z")

</div>

Follow this :-

1. Log into cPanel.

2. Look for the SOFTWARE section and click on Select PHP version

3. In the new window click on the Switch To PHP Options link.

4. Here you can locate the upload\_max\_filesize and click on the value.

5. Once you’ll do any change, please do a left-hand side click anywhere outside the dropdown or text input box. If the change was successful, you will see a green box with a message which will confirm that the change has been applied.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Quickdraw](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/q/cc9497/32.png) [@Quickdraw](https://www.dolibarr.org/forum/u/Quickdraw)\
**Post date:** [January 4, 2024, 5:36am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/9 "2024-01-04T05:36:42Z")

</div>

Hi,  
Ive tried editing all the php.ini files and .htaccess but still have Note: your PHP configuration currently limits the maximum filesize for uploads to 2048 Kb, irrespective of the value of this perameter. Under Security-Files(Upload) how do I fix this so I can deploy external modules?

---

<div class="post-metadata">

**Author:** ![medAmine09](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@medAmine09](https://www.dolibarr.org/forum/u/medAmine09)\
**Post date:** [December 2, 2024, 8:45am UTC](https://www.dolibarr.org/forum/t/how-to-increase-the-upload-max-filesize-limit/19138/10 "2024-12-02T08:45:00Z")

</div>

thanks man, that was really helpful
