To problem I think is that the web server (Apache in my case) sees that the content 
length is too big and cancels the transfer, so that the servlet does not get a change 
to process anything. I am using my own jsp page for file upload reading the content 
line by line. With smaller files it works fine.

In jserv.log there is following error

[03/01/2001 04:25:35:553] (EMERGENCY) ajp12[1]: cannot scan servlet headers  (500)
[03/01/2001 04:25:35:553] (ERROR) an error returned handling request via protocol 
"ajpv12"


> ----- Original Message -----
> From: "paul" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 02, 2001 7:03 PM
> Subject: Re: Maximum size of file uploads?
>
>
> > What are you using to process the uploaded file?
> >
> > I know that on the O'Reilly class there are two methods. One where you
> > specify the  max size and one where  you don't.  On the  one where you
> > don't the max size is 1M.  Perhaps this is your problem?
> >
> > > Hi,
> > >
> > > Does anybody know whether it is possible to limit maximum size of file upload in 
>Tomcat. At the moment, if I try to upload file larger than 1MB the server gives me an 
>error  "Cannot find server or DNS Error". On what this size is dependent on?
> > >
> > > Thanks,
> > >
> > > Risto
> > >
> > > ===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to