How do I get the user to choose the folder in which to save a spreadsheet? The call will be from a razor view of mvc.
How do I get the user to choose the folder in which to save a spreadsheet? The call will be from a razor view of mvc.
It is not possible to select the folder of a website using HTML native + JS. You can only select a file or list of files to upload, but not a folder itself. Normally you will not even be able to see the original path of the file that was uploaded, and you simply can not get direct access to the user's filesystem. Web communication is based on HTTP requests and is stateless, so there would be no way for the server to access the folder on the user's (remote) PC. And for security reasons, not even the JavaScript on the client can do it.