How to use input type= "file" to choose the path to download locally?

I want to achieve the function of downloading files, but it is very simple. The parameter required by the interface is the path where the file should be saved locally, but I don"t know how to get the selected path, that is, how to choose this path. I checked on the Internet and said that input type= "file" is OK, but I am very confused.

Apr.08,2021

input type= "file" does not guarantee you the correct local file location (c:XXX.x). Moreover, even if the web page knows the path, it should not write the file directly, otherwise the Trojan horse will be too convenient.
for file download, the web page provides only a file stream. It's up to the browser to decide where to save


input type= "file" shouldn't it be something to upload files? The front end cannot actively read local files, nor can it get the path. It's not the web page that determines the download location, it's the browser.


this operation is not allowed due to browser security policy.

PS: or you will get the user's directory. How much authority do you have?


tell the product manager that this cannot be implemented

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9155-4f3f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9155-4f3f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?