commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laura McCord <mcco...@southwestern.edu>
Subject Re: FileUpload problem
Date Fri, 30 Jan 2009 19:24:11 GMT
Martin,

Do I set the content type header in the servlet or jsp page where my 
form is located using setHeader()?

Thanks

Martin Cooper wrote:
> The first obvious suggestion is to check the content type header. If it's
> null, as this exception states, then your problem is upstream from, and
> unrelated to, Commons FileUpload.
>
> --
> Martin Cooper
>
>
> On Fri, Jan 30, 2009 at 9:28 AM, Laura McCord <mccordl@southwestern.edu>wrote:
>
>   
>> I'm getting the following error and I'm not sure if this has to do with
>> using https:
>>
>> org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
>> the request doesn't contain a multipart/form-data or multipart/mixed stream,
>> content type header is null
>>       at
>> org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:885)
>>       at
>> org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
>>       at
>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)
>>       at
>> org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
>>       at imagemanager.uploadservlet.doGet(uploadservlet.java:39)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>       at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>       at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>       at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>       at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>       at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>       at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>       at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>       at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>>       at
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
>>       at
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>>       at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
>>       at
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
>>       at
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
>>       at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>       at java.lang.Thread.run(Thread.java:595)
>>
>>
>> Does anyone have any suggestions?
>>
>> Thanks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message