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

How to browse a Folder in a Web application developed using Java/J2EE

P: n/a

It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is , i hav
such a requirement i think Javascript needs to be used.
Any inputs abt how to achieve this or any links are appreciated.

This Link did not help me , i get an error(PERMISSION DENIED)
instead , did this help anyone if so how?
http://codingforums.com/archive/index.php?t-1832.html
http://msdn.microsoft.com/library/de...eforfolder.asp
regards ,
rajesh.

Jun 17 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
backstreetboy wrote on 17 jun 2007 in comp.lang.javascript:
It's possible to browse a single file using <input type="file">
No, it is not, the user browses his own folders/directories,
to select a file to upload.

You cannot "browse a file".

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #2

P: n/a
backstreetboy said the following on 6/17/2007 6:59 AM:
It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is ,
No, you can not have the name of a folder as the value of a file input.
If you want an entire folder uploaded, it will have to be done one file
at a time.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 17 '07 #3

P: n/a
Randy Webb wrote on 17 jun 2007 in comp.lang.javascript:
backstreetboy said the following on 6/17/2007 6:59 AM:
>It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is ,

No, you can not have the name of a folder as the value of a file input.
If you want an entire folder uploaded, it will have to be done one file
at a time.
Or 3 at a time?

<form>
<input type='file'>file 1<br>
<input type='file'>file 2<br>
<input type='file'>file 3<br>
<input type='submit'value='upload'>
</form>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.