如何从HTML中的物理驱动器(d :)下载文件 [英] How to download file from physical drive (d:) in HTML
问题描述
大家好
i需要在驱动器d(localhost)上传我的文件
d:\\1.zip
如何在html页面下载或显示此文件(localhost)????
hi everyone
i need to upload my files in drive d (localhost)
d:\\1.zip
how to download or show this file in html page (localhost)????
<a></a>
无效!!!!
i试过这个地址:
档案:\\\\\:\ .zip
d:\\\ \\ 1.zip
d:/1.zip
我的尝试:
如何从物理驱动器下载文件(d :)在HTML中
推荐答案
可以因为html出于安全原因,/ js无法访问客户端数据文件系统?
至少未经用户同意。
Can it be because html/js do not have access to client data file system for security reasons ?
At least without user consent.
如何在html页面下载或显示此文件(localhost)????
how to download or show this file in html page (localhost)????
该过程与发送文件时的过程相同互联网上的服务器/>
客户端浏览器上的应用程序打开一个标准对话框,要求用户选择要发送的文件,并将文件提供给页面...
The procedure is the same as when you send a file to a server on internet.
The app on client browser opens a standard dialog asking the user to choose a file to send and the file is given to the page ...
这篇关于如何从HTML中的物理驱动器(d :)下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!