Hi,
You have to set
ENCTYPE="multipart/form-data"
in your form. There are some helper packages that help you to handle these
task written by Jason Hunter, You can go through the book Servlet
Programming by Jason Hunter (OReilly) and download the examples and packages
from www.servlets.com . There is a MultipartRequest Class in that package
which handles file upload.
Regards,
Raj
----- Original Message -----
From: Dharmendra Yadav
To: [EMAIL PROTECTED]
Sent: Friday, October 20, 2000 9:13 AM
Subject: Uploading a file through form created using servlet.
hi ,
I have a form created through servlet. I'm using input "type=file " as
item in form.
can someone tell me the code ( or java classes to use ) to upload a file
through servlet and and place it on a specific location on the server.
thanks guys
___________________________________________________________________________
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
___________________________________________________________________________
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