Odoo Help


Is it possible to change the limitation for uploading files too odoo9 enterprice.

Birol Saglicak
on 7/13/16, 3:42 PM 854 views

Hi. When we are uploading files bigger than 15 MB to Odoo, we get error messages.

How can we change this setting?

Posting the error message may help others readers determine if the message is a timeout (likely Ngnix or Apache as Grover suggests) or an actual size restriction.

Ray Carnes
on 7/13/16, 6:44 PM

Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 7/13/16, 11:33 PM

What Birol Saglicak is saying is that there is a limit for the upload of files into the binary fields, the limit is 25 mb, not 15 mb, and it's harcoded into the js field widget as:

this.max_upload_size = 25 * 1024 * 1024; // 25Mo

If you wanna change it you have 2 ways, manually change that value in the js file at: /openerp/addons/web/static/src/js/views/form_widgets.js (line 1137 in my Odoo Community copy)

or you could load a js extension of the widgets FieldBinaryFile and FieldBinaryImage in your custom module to change that since you will not be able to get access to the widget FieldBinary where it's defined using an extension and the you need to change all the widgets that extends from FieldBinary , like:

var core = require('web.core');

var FieldBinaryFile = core.form_widget_registry.get('binary');

var FieldBinaryImage = core.form_widget_registry.get('image');


init: function(field_manager, node) {

this._super(field_manager, node);

this.max_upload_size = 50 * 1024 * 1024; // 50Mo




init: function(field_manager, node) {

this._super(field_manager, node);

this.max_upload_size = 50 * 1024 * 1024; // 50Mo




Grover Menacho

--Grover Menacho--
WebVision Enterprise Systems
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Odoo Developer

Grover Menacho
On 7/13/16, 4:00 PM

It depends on your configuration.

As I know Odoo doesn't have limitations. If you are behind nginx or Apache you have to set it there.

It does have limitations and it is not configurable, as stated by Axel ;)

on 7/14/16, 4:35 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 7/13/16, 3:42 PM
Seen: 854 times
Last updated: 7/14/16, 6:10 AM