> 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


I am using Apache 1.3.6 and JRun 2.3.1 on both Win98 and Linux Redhat
5.2/6.0, but my JDK is still 1.1.7.  I don't have this problem (yet?), and I
have uploaded files that that are 345Kb to far.

But, I've only been running on a LAN, yet I noted that the file upload takes
longer than it should.  That is, if I ftped that file, it would transfer in
a 1 second, but via the POST it seems to take the browser 56 seconds!  Even
assuming some horrible encoding scheme used to HTTP POST I can't believe it
would be 56 times bigger.

I wonder if there is any problem with the duration of the uploads, that some
servers are terminating connections that stay open "too long," since one of
HTTPs saving graces over the rather unreliable Internet (especially for
dialup users) is that TCP connections are generally short-lived.

David
---------------------------------------------
David A. E. Wall
Vice President Production
myEastside.com
218 Main Street PMB 550
Kirkland, WA 98033 USA
http://myEastside.com

===========================================================================
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