Hi,

I am  also facing a problem with file upload.   Using the HTML code shown
below, after selecting the file and  clicking  on the "Upload now" button, I
will get a server error when I try to send a file that is larger than 55 KB.
The servlet code (Upload.class) simply output the HttpServletRequest content
length in the service() method.  If I upload some smaller files, I will not
have such error.   I have tested the code on Apache+GNUJSP and
PWS+ServletExec(servlet engine from New Atlanta), both gives server error.  And
when I check the error log, it seems that there is an exception thrown  when
the servlet is doing a socket read operation on the posted data.   Is there a
limit on the maximum file size on a file upload operation ?   I am using JDK
1.2 and JSDK 2.1.

The client side HTML code is as follows:
<html><body>
<form action=/servlet/Upload method=POST enctype="multipart/form-data">
File to upload: <input type=file name=Browse> <input type=submit name="Upload"
value="Upload now"><br>
</form></body></html>

Any insight into this problem is greatly appreciated.  Regards

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to