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:
- Directory Chooser in HTML page
- File picker with ability to select folder to be used on a webpage
- How can I let the user select a folder from an HTML page so that all the files can be uploaded
Author by
Amira
Updated on June 04, 2022Comments
-
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