You should use in your html code <input type = file>, check the syntax, this
pops up a file upload box, which when you press the submit button it
attempts to upload the data , you can get it by opening an input stream, you
have to be careful not to open the output stream before you finish reading
in the input stream, or it will be truncated. What you do with the data you
get back is your own concern. You could just return the data into a
hashtable, after suitable parsing of course.
Hope this helps.
Damien
-----Original Message-----
From: Patrick Regan [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 07, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject: FTP From JSP
I need to have a user specify a file ress up to yoiding on their local hard
drive
and then FTP it to where my web server is running (some directory). I
would assume I would need to use FTP within my java code to do it. But
this runs on the server so I would not have access to the local hard
drive. How would I upload a file?
Pat
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets