By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

path to file

P: n/a
Is it possible to retrieve and pass the entire path to a file. ie. you
search for a file on your hard drive using a form (<input type="file">)
you then submit the form which passes the file path to an applet use to
view the file/image.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Todd" <76********@sprintpcs.com> wrote in message
news:40**************@sprintpcs.com...
Is it possible to retrieve and pass the entire path to a file. ie. you
search for a file on your hard drive using a form (<input type="file">)
you then submit the form which passes the file path to an applet use to
view the file/image.


<input type="file"> doesn't send just the file name. It sends the whole
file. Search the net for "oreilly multipartrequest" to find a Java class
that will let you work with a file submitted that way. As far as using forms
with applets, dunno about that one. Forms are generally used with some type
of server side technology like JSPs or servlets. As far as an applet reading
a file not on the server it originated from, I understand you have to do
some pretty serious security stuff. That's all I know about that.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.