# With Dash, how to obtain a directory name from a file browser

**URL:** <https://discourse.julialang.org/t/with-dash-how-to-obtain-a-directory-name-from-a-file-browser/65826>\
**Category:** Web Stack\
**Tags:** dash\
**Created:** [August 4, 2021, 4:02pm UTC](https://discourse.julialang.org/t/with-dash-how-to-obtain-a-directory-name-from-a-file-browser/65826 "2021-08-04T16:02:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a5vzener](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/a5vzener/32/16257_2.png) [@a5vzener](https://discourse.julialang.org/u/a5vzener)\
**Post date:** [August 4, 2021, 4:02pm UTC](https://discourse.julialang.org/t/with-dash-how-to-obtain-a-directory-name-from-a-file-browser/65826/1 "2021-08-04T16:02:23Z")

</div>

I would like users of my `Dash` app to be able to select a directory on their local machine — not just one file – and obtain the relative path and name of that directory. Ideally I would get the names of files in the directory as well.

This scenario does not seem to be supported by the Dash `dcc_upload` widget, which ignores directories.I found [a workaround on stackoverflow](https://stackoverflow.com/questions/24718769/html5-javascript-how-to-get-the-selected-folder-name) that uses the HTML input (type=file) form element. But that element appears absent from Dash HTML components.Can anyone help?  
Thanks!
