简体   繁体   中英

How do I detect the default download path on a client PC in an asp.net core 3.1 project (c#)?

I would like to get the download path for web browser clients.

How do I detect the default download path on a client PC in an asp.net core 3.1 project (c#)?

Poul Bak's comment is correct.

As we know, .net core 3.1 webapp just support broswer to access the resource from the webserver. It can't do anything in client side.

If we want to do something on the client side, we can only call it through Javascript under the premise of browser security.

And it's not possible to get broswer download path with javascript.

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