TransWikia.com

Using CloudDeploy[FormFunction[...]], how to let a user give a directory path as input?

Mathematica Asked on July 21, 2021

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:Usersrossk". 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.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP