简体   繁体   English

本地网络获取文件路径但不上传文件

[英]local network get file path but not upload file

I know when uploading files for security reasons the browser will not get directory of file when using a file upload control. 我知道出于安全原因上传文件时,使用文件上传控件时浏览器将不会获取文件目录。 But what I am looking for is for the local network user to select a file in a network drive and capture the path and file name but not upload that file. 但是我要寻找的是本地网络用户在网络驱动器中选择一个文件并捕获路径和文件名,但不上传该文件。 this is just to store the file they select in a table. 这只是将他们选择的文件存储在表中。 Is there a way of doing this? 有办法吗? some sort of work around? 某种解决方法? the only thing I've thought of is putting a textbox and having the user copy/paste the file path but is there an easier method? 我唯一想到的就是放置一个文本框并让用户复制/粘贴文件路径,但是有没有更简单的方法? again not uploading the file just capturing what file and location the local network user wants to use. 再次不上传文件,只是捕获本地网络用户要使用的文件和位置。

It can't be done using the File upload control (html input element). 使用文件上传控件(html输入元素)无法完成此操作。 You have to use a plugin like (possibly) Flash or a custom ActiveX control. 您必须使用(可能是)Flash或自定义ActiveX控件之类的插件。

What you are looking for is not possible using standard web technologies (html, css, js). 使用标准的Web技术(html,css,js)无法实现您要查找的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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