Good day,
Does anyone know if the apachejserv has a limitation particularly in
uploading a large file? Because, I am encountering some internal server
error. I am trying to upload 2.5MB of file and get the content length but it
does not work.
Any idea?
Thanks,
John John Tobias
------------------------------------------------------------
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<FORM METHOD=POST ACTION="/share/servlets/TestUpload"
ENCTYPE="multipart/form-data" >
<P>
<INPUT TYPE=file NAME=fileko VALUE="Browse">
</P>
<P>
<INPUT TYPE=SUBMIT VALUE="Send">
</P>
</FORM>
</BODY>
</HTML>
------------------------------------------------------------
/* TestUpload.java */
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestUpload extends HttpServlet {
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException, IOException {
ServletOutputStream out = res.getOutputStream();
int contSize = req.getContentLength();
out.println( "Content Size = " + contSize );
}
}
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
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