Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 开发与实施交流
  4. odoo10fdfs上传大于2M的照片报413是什么情况呀

odoo10fdfs上传大于2M的照片报413是什么情况呀

Scheduled Pinned Locked Moved Odoo 开发与实施交流
4 Posts 4 Posters 2.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    languid
    wrote on last edited by
    #1

    client_max_body_size已经设置500M了还是报 同服务器另一个项目可以上正常上传 两个都是同一个fdfs 有没有大哥遇到过这种情况呀

    1 Reply Last reply
    0
    • D Offline
      D Offline
      digitalsatori
      管理员
      wrote on last edited by digitalsatori
      #2

      报http 413错误,那就一定是http服务器(nginx)的上传限额的问题。关键是你的client_max_body_size设在哪里了。它可以设置为全局,也可以设置为每个虚拟服务器,或者某个location。然后设置好后,有没有reload。
      另外,记得Odoo 10.0 的 js前端有一个20M还是25M的上传限制,但是应该跟你现在的问题无关。

      【上海先安科技】(tony AT openerp.cn)

      1 Reply Last reply
      0
      • JoshuaJ Offline
        JoshuaJ Offline
        Joshua
        管理员
        wrote on last edited by
        #3

        检查下前端服务器(nginx)日志

        【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kowky
          wrote on last edited by
          #4

          提供二个思路
          1、上面管理员解答nginx反向代理配置上传文件大小限制参数
          2、修改源码中文件大小限制代码代码路径(以10.0版本为例):

          addons\web\static\src\js\views\form_widgets.js
          

          this.max_upload_size = 25 * 1024 * 1024

          以上为个人理解,楼主自行确认下需要哪种方式进行解决
          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Tags
          • Popular
          • Users
          • Groups