简体   繁体   中英

Get selected folder path from a folder browsing dialog in mvc4

I want the user to select a folder location on his machine. I need to get that selected folder path. Is there any control in mvc4 to achieve my requirement. Please help.

Thanks in advance

If you just want to store the text path a user has selected on their local machine, you only have 2 options.

1) Use an HTML file upload, and get them to upload a file. However some modern browsers will strip the full file path, leaving this of little use to you.

2) Write a flash or java plugin that lets them pick a local folder and include it on the page. You'll then have to ask the users to dismiss the dire security warnings that will be presented to them.

Unfortunately, due to security concerns, those are your only options for achieving this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM