获得文件路径的方法

WBOY
Release: 2016-06-13 13:01:32
Original
870 people have browsed it

取得文件路径的方法
我要读取一个word文档,需要用户选择文件路径~~~我能想到的就是用文件上传按钮来获取文件路径,然后再把上传到的临时文件给删除掉~~~有没有其他方法能只取得路径啊?
------解决方案--------------------
你把上传input放在另一个form里面
而你要post的form里面,放一个

然后绑定第二个form的onsubmit方法把上传的那个input的值放过来file_path这个

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template