# Asset Upload Problem

**URL:** <https://forum.mautic.org/t/asset-upload-problem/3372>\
**Category:** Product Support\
**Created:** [February 2, 2016, 1:09am UTC](https://forum.mautic.org/t/asset-upload-problem/3372 "2016-02-02T01:09:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![somertech](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@somertech](https://forum.mautic.org/u/somertech)\
**Post date:** [February 2, 2016, 1:09am UTC](https://forum.mautic.org/t/asset-upload-problem/3372/1 "2016-02-02T01:09:48Z")

</div>

Hi,  
  
  
  
I’m hoping that someone can help me out.  
  
I have a self hosted Mautic installation 1.2.4 on Ubuntu 14.04.  
  
I would like to increase the size of the Asset uploads for the purpose of making downloadable content available after a visitor completes a lead capture form. If I understand Mautic’s use cases correctly, this is possible, yes?  
  
  
  
In any case, I have modified the following three parameters in PHP.

1. upload\_max\_filesize 300M  
2. post\_max\_size 300M  
3. max\_execution\_time 600  
  
  
  
I have also changed the Asset max upload size parameter in the Mautic Configuration area to 300 MB.  
  
I know this seems large to some, but it is my use case, and I am not trying to send this via email.  
  
  
  
The current condition is that Mautic shows a max file upload size of 128MB in the Assets upload page, and when I attempt to upload a zip file of only 57MB, I get the following error after what seems like a successful data transfer.  
  
  
  
Upload a file (max filesize allowed = 128 MB)  

  
413 Request Entity Too Large  
  

# 413 Request Entity Too Large
  

* * *
nginx/1.1.19  
  
  
  
  
  
  
  
  
  
Is the 128MB value a hard coded value, and if not where is it coming from since PHP should be configured to accept larger uploads? Secondly and most importantly, why are smaller files such as I explained above not successfully being uploaded?  
  
Regards;  
  
Hopeful New Mautic User  
Mike

---

<div class="post-metadata">

**Author:** ![somertech](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@somertech](https://forum.mautic.org/u/somertech)\
**Post date:** [February 2, 2016, 1:09am UTC](https://forum.mautic.org/t/asset-upload-problem/3372/2 "2016-02-02T01:09:48Z")

</div>

Hi,

I’m hoping that someone can help me out.  
I have a self hosted Mautic installation 1.2.4 on Ubuntu 14.04.  
I would like to increase the size of the Asset uploads for the purpose of making downloadable content available after a visitor completes a lead capture form. If I understand Mautic’s use cases correctly, this is possible, yes?

In any case, I have modified the following three parameters in PHP.

1. upload\_max\_filesize 300M
2. post\_max\_size 300M
3. max\_execution\_time 600

I have also changed the Asset max upload size parameter in the Mautic Configuration area to 300 MB.  
I know this seems large to some, but it is my use case, and I am not trying to send this via email.

The current condition is that Mautic shows a max file upload size of 128MB in the Assets upload page, and when I attempt to upload a zip file of only 57MB, I get the following error after what seems like a successful data transfer.

Upload a file (max filesize allowed = 128 MB)

 413 Request Entity Too Large 
# 413 Request Entity Too Large

* * *
nginx/1.1.19 

Is the 128MB value a hard coded value, and if not where is it coming from since PHP should be configured to accept larger uploads? Secondly and most importantly, why are smaller files such as I explained above not successfully being uploaded?

Regards;

Hopeful New Mautic User  
Mike

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 3, 2016, 11:49am UTC](https://forum.mautic.org/t/asset-upload-problem/3372/3 "2016-02-03T11:49:51Z")

</div>

Make sure you’ve restarted server after the php.ini change.

The max asset upload file size is configurable in the Mautic’s configuration so check what limit is there.

---

<div class="post-metadata">

**Author:** ![somertech](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@somertech](https://forum.mautic.org/u/somertech)\
**Post date:** [February 5, 2016, 7:32pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/4 "2016-02-05T19:32:48Z")

</div>

As described in first post, I have changed “max asset upload file size” to 300MB in Mautic Configuration.  
I have also made the appropriate changes in php.ini on the hosting server. Still I get this error with files that are substancially smaller than 300MB.  
 ![](http://somertech.com/wp-content/uploads/2016/02/bandicam-2016-02-05-13-27-02-298.png)

Thank You;

---

<div class="post-metadata">

**Author:** ![somertech](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@somertech](https://forum.mautic.org/u/somertech)\
**Post date:** [February 5, 2016, 10:50pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/5 "2016-02-05T22:50:52Z")

</div>

RESOLVED

This was an environmental issue and not a Mautic Problem.  
My Mautic instance sits behind an Nginx webserver configured as an internal reverse proxy. This allows me to host websites on many different domains behind a single public IP address.  
Nginx was incorrectly configured for my use case as it was set to only allow 50MB client uploads [client\_max\_body\_size].

Probably won’t be useful for most people, but thought I would share anyway.

---

<div class="post-metadata">

**Author:** ![volcania\_dread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/volcania_dread/32/11124_2.png) [@volcania\_dread](https://forum.mautic.org/u/volcania_dread)\
**Post date:** [December 31, 2023, 1:48pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/6 "2023-12-31T13:48:40Z")

</div>

Hi there:) I’m trying to increase the max size too …could you please tell me where I could find and edit the configuration file?

---

<div class="post-metadata">

**Author:** ![volcania\_dread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/volcania_dread/32/11124_2.png) [@volcania\_dread](https://forum.mautic.org/u/volcania_dread)\
**Post date:** [December 31, 2023, 1:59pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/7 "2023-12-31T13:59:19Z")

</div>

Hi there:) I have a similar problem. but I just can’t find the configuration file. could you please tell me where I can find it?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 2, 2024, 8:58am UTC](https://forum.mautic.org/t/asset-upload-problem/3372/8 "2024-01-02T08:58:45Z")

</div>

Look at the phpinfo output like:

 ![Screenshot 2024-01-02 at 09.57.25](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5db8c59d6c1986cc9898e9343634bb46d7575640.png)

---

<div class="post-metadata">

**Author:** ![volcania\_dread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/volcania_dread/32/11124_2.png) [@volcania\_dread](https://forum.mautic.org/u/volcania_dread)\
**Post date:** [January 2, 2024, 7:00pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/9 "2024-01-02T19:00:11Z")

</div>

tysm for the reply:)

could you pls tell me how I could edit this file?

I searched for it in my file manager and couldn’t find it.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 3, 2024, 8:26am UTC](https://forum.mautic.org/t/asset-upload-problem/3372/10 "2024-01-03T08:26:23Z")

</div>

If you don’t have access to this file via SSH then I guess you are on some form of a web hosting. Please contact your hosting company.

---

<div class="post-metadata">

**Author:** ![volcania\_dread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/volcania_dread/32/11124_2.png) [@volcania\_dread](https://forum.mautic.org/u/volcania_dread)\
**Post date:** [January 3, 2024, 5:06pm UTC](https://forum.mautic.org/t/asset-upload-problem/3372/11 "2024-01-03T17:06:17Z")

</div>

Hey tysm for your reply:)

my problem was actually in the configurations \> assets settings

 ![Screenshot 2024-01-03 at 18.04.35](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/81f2e796d60b32e89c1bbebba93045e9fe18d603.png)
