收藏
回答

微信小程序 video视频上传 wx.uploadFile限制2M以内?

"<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Maximum upload size of 2048000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000)</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 2048000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000)

 org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:162)

 org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142)

 com.csii.pe.channel.http.servlet.MainServlet.doPost(MainServlet.java:569)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:661)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

 com.csii.pe.channel.http.servlet.FixEncodingFilter.doFilter(FixEncodingFilter.java:63)

 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

</pre><p><b>Root Cause</b></p><pre>org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3781692) exceeds the configured maximum (2048000)

 org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.&lt;init&gt;(FileUploadBase.java:965)

 org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310)

 org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:334)

 org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:115)

 org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:158)

 org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142)

 com.csii.pe.channel.http.servlet.MainServlet.doPost(MainServlet.java:569)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:661)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

 com.csii.pe.channel.http.servlet.FixEncodingFilter.doFilter(FixEncodingFilter.java:63)

 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

</pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/8.5.39</h3></body></html>"


回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2019-07-31

    你服务器后台的事,找个有后台开发经验的人改改配置文件吧

    2019-07-31
    有用 1
    回复 2
    • 何崇
      何崇
      2019-07-31
      谢谢,翻译了一下 是spring框架配置需要修改。
      2019-07-31
      回复
    • Mr.Zhao
      Mr.Zhao
      2019-07-31回复何崇
      application.yml里面改,自己百度一下,server.http.maxHeadSize什么的
      2019-07-31
      1
      回复
登录 后发表内容