Choose folder with mvc c#

Asked

Viewed 76 times

-1

How do I allow the user to choose the folder in which to write a sheet? The call will be from an Razor view of mvc.

1 answer

1

You cannot select a website folder using HTML Native + JS. You can only select a file or list of files to upload, but not a folder itself. Usually you won’t even be able to see the original file path that was uploaded, and you simply can’t get direct access to the user’s file system. 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 customer Javascript can do it.

  • How do I generate a spreadsheet on my MVC machine?

  • You can search a little about Fileresult, it will suit you what you need! Any questions I’m available.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.