在Firefox中的html上传文件时获取文件的完整路径 [英] Getting file full path when uploading file in html in firefox

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

问题描述

我想在上传文件时获取完整的文件路径。

I want to get the full file path when uploading a file.


如果我们使用safari或IE浏览器,我将获得完整的文件路径,但在Firefox中它无法正常工作

. If we use safari or IE browser i am getting full file path but in firefox it is not working

如何通过使用获取完整的文件路径名firefox中的javascript或jquery。

how can i get the full file path name by using javascript or jquery in firefox.

谢谢

推荐答案

你不能,出于安全原因。 broswer对用户的硬盘一无所知。

You cant, for security reasons. the broswer knows nothing about the user's hard drive.

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

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