如何在HTML文件中获取完整路径 [英] How to get full path in file in html

查看:179
本文介绍了如何在HTML文件中获取完整路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<input type="file" name="photo" id="photo" size="30" />

推荐答案

如果您正在谈论从中获取路径,那么您就不能.这个标签被紧紧地装在沙盒中,因此不会给人们留下安全漏洞.
If you''re talking about getting the path from this, then you can''t. This tag is sandboxed pretty tightly, so that it doesn''t leave open a security hole for people to exploit.


看起来像是最新版本,新版本的网络浏览器却没有.为了安全起见,请将此信息发送到服务器.

看看这些讨论:
如何获取文件路径从HTML输入表单... [如何获取完整来自html的文件名的路径... [使用输入类型获取完整路径是HTML格式的文件 [
Looks like it off-late, new versions of web browser doesn''t send this information to the server, for security purposes.

Have a look at these discussion:
How to get the file path from HTML input form...[^]
How to get full path of file name from html...[^]
Getting full path while using the input type is file in HTML[^]


这篇关于如何在HTML文件中获取完整路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆