I want to creat a CloudDeployed
FormFunction
which lets a user give the path to a directory on their local computer as an input. I have tried the following, FormFunction[{"root" -> "Directory"}, #root &]
, just as a test.
The active form has a Browse...
button for the user to select a directory. But when browsing the computer, it doesn't actually let me choose a directory path to give as input. I'm not sure how to describe the issue, but it just keeps going further down the file path, not actually selecting the folder as input to the form.
What I would like, is for #root
to be set to a file path from the user's machine. For example, "C:\\Users\\rossk"
. I understand that accessing a user's files can be sketchy, but I will make the source code available on the form, and explain the purpose of the form to users. Please let me know how I can resolve this.
"Directory"
is not listed inref/Interpreter
supported forms. We could plug a html+js based solution but I see a problem here, your app won't be able to do much with theroot
because it can't have access to it. You'd need to upload files or an archived dir. $\endgroup$root
is a bad name, I am just referring to a folder containing Markdown files. I see that an archived dir looks like it could work. Basically, I just need to import all the markdown files in a specified folder, and any subfolders. $\endgroup$