Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

413 Request Entity Too Large error in Odoo 18E occurs when a file upload

Subscribe

Get notified when there's activity on this post

This question has been flagged
Odoo.shOdoo18
1 Reply
785 Views
Avatar
Nikhil Nakrani

We are using Odoo 18 Enterprise on Odoo.sh. We have a Proof menu where users upload a PDF file. The field used for this upload is a Binary field.

When we upload the PDF and try to save the record, we encounter the error shown below.

I checked existing answers on the Odoo forum, but none of them resolved the issue. I also reviewed the following GitHub issue:

https://github.com/odoo/odoo/issues/212746

This issue has been reported by other users as well, but so far there is no confirmed solution available.

werkzeug.exceptions.RequestEntityTooLarge: 413 Request Entity Too Large: The data value transmitted exceeds the capacity limit.

  • I already try this solution but this only work in local machine.
  • from odoo import http
  • http.DEFAULT_MAX_CONTENT_LENGTH = 1024 * 1024 * 1024 # 1GB 

Thanks 


0
Avatar
Discard
Christoph Farnleitner

What is your actual file size? Is there enough space assigned to your sh instance?
Also, there is a document.max_fileupload_size in System parameters, set to 67MB by default - but I doubt you can tweak it enough from here.

Codesphere Tech

Hello Nikhil,
This issue is not caused by Odoo itself but by request size limits on Odoo.sh. Increasing http.DEFAULT_MAX_CONTENT_LENGTH works only in local environments because Odoo.sh enforces a reverse proxy limit (typically around 25–50MB), which cannot be modified.
Reduce or compress the PDF before uploading. You can also use ir.attachment instead of a Binary field, but keep in mind that large files will still impact storage and database size.
Let's wait if any one has solution for this
Thanks

Avatar
Zehntech Technologies Inc.
Best Answer

Hello, 

This issue typically occurs due to upload size limits enforced at the Odoo.sh infrastructure level, not just within Odoo itself.

While increasing DEFAULT_MAX_CONTENT_LENGTH may work in a local setup, it does not override the reverse proxy (nginx) limits on Odoo.sh, which are not directly configurable.

As a workaround, you can consider:

  • Reducing/compressing the PDF size before upload
  • Storing large files externally (e.g., cloud storage like S3, Google Drive) and saving only the link in Odoo
  • Splitting large files into smaller parts if applicable

At the moment, there is no confirmed native fix for this limitation on Odoo.sh.

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to Add a User to Access the Database on Odoo.sh? Solved
Odoo.sh
Avatar
Avatar
1
Nov 25
5868
Odoo.SH Github account ownership transfer, trying to change the repository
Odoo.sh
Avatar
Avatar
1
Jun 26
10009
Odoo.sh sale commission Solved
Odoo.sh
Avatar
Avatar
1
Aug 23
3882
Odoo.sh Bad Gateway
Odoo.sh
Avatar
0
Jun 26
4970
"Odoo.sh authentication failure" message when trying to access Odoo.sh Projects Solved
Odoo.sh odoo down
Avatar
Avatar
1
Jun 26
530
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now