Using Genie, I want to include a button in a web app that, once clicked, will trigger a dialog which allows a user to select folders containing data from their local computer to upload to the web app. I can do this using Gtk but cannot see how to do it using Genie. Anyone know how? I found this component gallery, so I know how to create the button: Component gallery - Genie. Thanks.
Better, actually, would be if the user can specify local paths to data and the data files can be loaded iteratively
You can select a folder in a platform-independent way using pick_folder
from the NativeFileDialog package. There is also pick_multi_file
if you want to select multiple (but not all) files in a particular folder.
My guess is that you’d have to ask the Stipple.jl maintainers to see if they’d be willing to add a feature to their Uploader component to support the browser’s directory selection feature.
<input id="b" type="file" webkitdirectory />
Okay thanks, will do. Perhaps this is a naive question, but is there any way, even in principle, to have the code running on a server load in files from a specified local directory? Or, would all files need to be uploaded at the same time and stored somewhere temporarily?
That’ll work only if the server is also local and if you’ve written the server with that assumption in mind. However, if the server is NOT local (which is usually the case), no.