File upload servlet

2000-11-25 Thread G.Nagarajan
Hi, I am using the following servlet for uploading files. http://www.servlets.com/resources/com.oreilly.servlet/index.html The code works fine when the file size is lesser than the max file size. But when the uploaded file size is more, the browser just shows the server could not be found messag

File Upload Servlet Error

2001-02-13 Thread Daryani Santosh
I am trying to upload a file to a server using a HTTP Post Client. At the client side I have a Java program that reads it and posts it to the servlet. The servlet reads the incoming stream of data and writes it to the disk. Simple enough. This works like a charm most of the times , but in certain

Jason Hunter's File upload servlet

1999-12-06 Thread David Wall
Has anybody seen this recent problem (I've only seen it with IE5 so far) that appears with Jason Hunter's file upload servlet (actually com.oreilly.servlet.MultipartRequest):   The servlet throws: Corrupt form data: no leading boundary   So, I put in a trace, and I sometimes have

Re: Jason Hunter's File upload servlet

1999-12-06 Thread Jason Hunter
David Wall wrote: > > Has anybody seen this recent problem (I've only seen it with IE5 so > far) that appears with Jason Hunter's file upload servlet (actually > com.oreilly.servlet.MultipartRequest): > > The servlet throws: Corrupt form data: no leading boundary >

Re: Jason Hunter's File upload servlet

1999-12-06 Thread David Wall
From: "Jason Hunter" <[EMAIL PROTECTED]> To: "David Wall" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 06, 1999 5:55 PM Subject: Re: Jason Hunter's File upload servlet > David Wall wrote: > > > > Has anybody

Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread Sylvain Roche
Here is what seems to be a solutionless problem. I use JRun, with session persistence enabled, but without session cookie. AFAIK, the jrunsessionid parameter is what is used to recognize the session in this case. I think it is not strictly a jrun problem, because I know other servlet servers also

Re: Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread David Wall
> When posted in a multipart form, the form fields are no longer directly > stored in the request, and thus available with a request.getParameter. I'm not sure what you are really saying, but if you want to ensure that the current JRun session parameter is included in forms, including the multipa

Re: Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread Sylvain Roche
Sorry if I misexplained something. What I wanted to say is that the parameter needed for sesion tracking is unavailable when posted from a multipart form. >value="<%=request.getSession(false).getId()%>"> I off course included such a parameter in my form, and this works great when not in a multi

Re: Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread Hans Bergsten
David Wall wrote: > > > When posted in a multipart form, the form fields are no longer directly > > stored in the request, and thus available with a request.getParameter. > > I'm not sure what you are really saying, but if you want to ensure that the > current JRun session parameter is included in

Re: Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread David Wall
> I don't know about JRun specifically, but a portable solution should be > to make sure the URL used in the form's action attribute is "URL rewritten", > >method="post"> > > The solution you suggest only works with JRun, since ServletUtil is not > a standard class, and URL rewriting (accordin

Re: Jason Hunter's File upload servlet + session persistence

2000-01-18 Thread Hans Bergsten
David Wall wrote: > > > I don't know about JRun specifically, but a portable solution should be > > to make sure the URL used in the form's action attribute is "URL > rewritten", > > > >method="post"> > > > > The solution you suggest only works with JRun, since ServletUtil is not > > a standar

Re: Jason Hunter's File upload servlet + session persistence

2000-01-19 Thread Sylvain Roche
I'll ask Allaire for that specific question. Thanks anyway to all those that relied Best regards Sylvain > >In that case it's a bug in JRun. Even if they today (in their 2.1 compliant >servlet container) use a regular HTTP parameter to send the session ID, >encodeURL() should encode the URL ac