Select folder with FileUpload

UI Components for JSF
Post Reply
Posts: 15
Joined: 19 Aug 2015, 15:16

12 Aug 2017, 15:25


Is there any way to select a folder using fileupload?

I mean, I want to click in chooser button and select a folder and show the directory path instead of a file name or maybe I'm ok selecting a file but I want to show the directory path.

I did a search here, stack, showcase and extensions and I didn't find a solution, some developers suggested webkitdirectory, but I read and I noticed that isn't recommended in production sites.

Thanks in advance.

Expert Member
Posts: 9033
Joined: 17 Jun 2010, 13:34
Location: Netherlands

12 Aug 2017, 18:48

No, there is not... (ab) using the webkit workaround is the only (non-guaranteed compatibility wise) hack...
Ronald van Kuijk
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests