Check out Jason Hunter's www.servlets.com for the code to do file uploads
...

don't forget to buy Jason's excellent book from OReilly too if you use the
code for commercial apps...

geoff

-----Original Message-----
From: Jaganathan Jeyapaul <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, 27 April 1999 12:17
Subject: How to UPLOAD a File to the webserver.


Hi All,

I am providing a HTML page to users that should upload files from their
machine to my webserver. I have a html page that posts <INPUT TYPE="file"
NAME="uploadfile" > from client machines to my servlet.

But the HTTP request has only the path information for
getParameter("uploadfile"); . Does it mean i have to do a socket or
something to transfer the content of the file to the webserver side. Or is
there an easy way to do this.

I would really appreciate if someone can provide me with a sample or throw
some more light on this.

Thanks a lot.

Happy Programming.

  Cheers
     jagan

___________________________________________________________________________
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