简体   繁体   中英

Uploading files from a client folder through a Asp .Net web application

I know that most of the modern browsers do not support 'Folder level' selection because of obvious security risks. But, I know they support 'File level' selection. So, if I select a file from a client side folder, truncate the file path to get the folder path, and upload files from that folder using

DirectoryInfo

or some other class, behind the scenes? I am currently using ActiveX to achieve this functionality, but would like to move away from it. If this is not possible what are best alternatives to achieve it?

modern browsers do support directory uploads.

<p>Directory: <input type="file" webkitdirectory mozdirectory /></p>

here is the fiddle

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