Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to upload big file

 
Nilesh Sah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am facing a problem in my application where application is not uploading file more than 1 kb.However it is successfully uploading all those files less than 1 kb. We are using multipart request.The error I am getting is following.
---------------------------------------------------
java.io.IOException: Posted content type isn't multipart/form-data
at com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:119)
at com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:83)
at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:117)
at com.mindspeed.product.admintool.docs.UploadDocAction.perform(UploadDocAction.java:44)
at com.mindspeed.product.admintool.PDATUploadServlet.processAction(PDATUploadServlet.java:55)
at com.mindspeed.product.admintool.PDATUploadServlet.doGet(PDATUploadServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
----------------------------------------------------

Please help me out.

Thanks in advance.
Nilesh
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try multipart parser from Apache group. It had limitation 2GB. If you need more than 2GB, then PM me for another parser.
 
Lucas Lee
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need post your whole code here.
It seems that you use wrong enctype value to post data in your HTML form.
 
Nilesh Sah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi D Rog and Lucas Lee,
Thanks for responding. Earlier this was running fine. All of a sudden it stopped uploading files which are bigger than 1 kb in size.My OS is solaris and application server is weblogic 8.1 sp2.The same code is working fine in my development environment.Infact it uploads file in a temporary directory and finally copies it to main directory from there but it is unable to upload on temporary directory.

Thanks in advance.
Nilesh Sah
 
Nilesh Sah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Has any body got any idea about this. Please help me out.

Regards
Nilesh Sah

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic