• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Selecting directory using input=file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can anyone please let me know how can i select a directory, so that i can get a directory path using input=file.

Currently it is allowing only to select files. But my requirement is only to select a directory, where in i will be putting some files to that directory using my app.

Thanks and regards,
Ravi
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't think it is possible.

Eric
 
Ravikanth Lolur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,

Thanks for your reply. Do you know any other alternative for this. I am using struts jsp's as my view.

If anyone is having an idea about any third party tag lib's or so to do this, kinldy let me know.

Thanks & Regards,
Ravi
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I take it that Eric's reply above is correct.

I guess I can understand why a "browse for directory" feature is not real helpful for most web pages since the browser and the application server are generally running on different computers so the directory path would not be real useful. I have an unusual case where the browser and application server are on the same computer. I only need to support current release of IE (I cannot not use an ActiveX controls).

Let me know if there is a way to implement this. Otherwise I guess I will force the user to type (or cut and paste) the directory path into a text box.

- Brent
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic