Choose folder with mvc c # [closed]

-1

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.

    
asked by anonymous 17.09.2018 / 23:45

1 answer

1

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.

    
17.09.2018 / 23:50