Big attachments fail without warning in Odoo

If you try to include a large attachment in an email template for example, Odoo will silently fail. If you open the debugger in your browser of choice, you’ll often see true underlying errors that have not yet been handled by the developers.

In this case, you’ll see an HTTP error – 413 which means the entity you are trying to upload is too big.

In my case I host odoo behind nginx. So in order to fix this restriction I had to explicitly specify

client_max_body_size  in between the http {} section of my /etc/nginx/nginx.conf file.  I set mine to 10M to be safe.

After restarting nginx ( maybe even a reload works),  the restriction was no longer there.

One thought on “Big attachments fail without warning in Odoo

  • An impressive share! I’ve just forwarded this onto a coworker who had been conducting a little research on this.
    And he in fact bought me dinner due to the fact that I found it
    for him… lol. So allow me to reword this…. Thanks
    for the meal!! But yeah, thanks for spending time to talk about this matter here on your internet
    site.

Leave a Reply