467,168 Members | 984 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,168 developers. It's quick & easy.

path to file

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
  • viewed: 2783
Share:
1 Reply
"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.

Similar topics

31 posts views Thread by John Roth | last post: by
70 posts views Thread by Michael Hoffman | last post: by
34 posts views Thread by Reinhold Birkenfeld | last post: by
2 posts views Thread by Rob Cowie | last post: by
6 posts views Thread by openleren | last post: by
2 posts views Thread by Tom Wells | last post: by
6 posts views Thread by I am Sam | last post: by
5 posts views Thread by 7stud | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.