You have to set your ENCTYPE as multipart/form-data in your HTML form. The file is sent in your InputStream so you have to read it from the Stream there will ofcourse be no method for it. For more info. read Jason Hunters book. Bye, Jiger >From: Sushant Kumar <[EMAIL PROTECTED]> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: File upload.. >Date: Mon, 21 Aug 2000 19:16:01 +0530 > >Hi all.. > >I am trying to upload a file to my server using Form. I am setting one of >the the input's type as File. But, on the servlet side I couldn't find any >method to read the request's data as file.. >does anyone has any idea about how to do this?? I am using web-server >provided with jswdk1.0.1. > >Regards, >Sushant > >___________________________________________________________________________ >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 ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail 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
