Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
Odoo.shOdoo18
1 Répondre
799 Vues
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
Ignorer
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.
Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to Add a User to Access the Database on Odoo.sh? Résolu
Odoo.sh
Avatar
Avatar
1
nov. 25
5884
Odoo.SH Github account ownership transfer, trying to change the repository
Odoo.sh
Avatar
Avatar
1
juin 26
10018
Odoo.sh sale commission Résolu
Odoo.sh
Avatar
Avatar
1
août 23
3887
Odoo.sh Bad Gateway
Odoo.sh
Avatar
0
juin 26
4971
"Odoo.sh authentication failure" message when trying to access Odoo.sh Projects Résolu
Odoo.sh odoo down
Avatar
Avatar
1
juin 26
589
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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