hi,
 I have a problem with form "multipart/form-data" with POST action
 any time I use that form with an input type =file, and post a file with
size about 650M
the servlet freeze to response any one can give me the instruction??thanks
in advance
my form:

<form method="post"  enctype="multipart/form-data"
action="/servlets/testupload"  >
<input type="file" name="file1">
<input type="submit" value="upload">
</form>
my servlet:

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class testupload extends HttpServlet
{
 public void doPost (HttpServletRequest request, HttpServletResponse
response) throws ServletException,IOException
 {

   response.setContentType("text/html");
   PrintWriter out=response.getWriter();
   int up_size=(int)request.getContentLength();
   out.println("Size upload "+up_size);
   out.flush();
   out.close();
 }

}

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to