Browsing file system to select directory in JSF

12,015

For security reasons you cannot browse the filesystem with HTML/JavaScript. If you want to do such a thing you could use a Java applet or a Flash element, but I found such things repulsive.

The reason you want to do this is unclear to me. If it's for downloading a file and selecting a destination, you should be using a regular file download.

You might want to do more research. I found a couple questions on SO that are comparable:

Share:
12,015
Amira
Author by

Amira

Updated on June 04, 2022

Comments

  • Amira
    Amira almost 2 years

    is there a way to implement browsing file system directory in facelets i don't want the user to type the directory i search it in primefaces showcases but i didn't find it .

    Any help will be appreciated