简体   繁体   中英

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). You have to use a plugin like (possibly) Flash or a custom ActiveX control.

What you are looking for is not possible using standard web technologies (html, css, js).

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