Chrome中的FileUpload提供了一些虚假的路径值 [英] FileUpload in Chrome giving some fake path value

查看:250
本文介绍了Chrome中的FileUpload提供了一些虚假的路径值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Chrome中上传文件,然后给出一些伪路径值。它提供了像C:\ fakepath \Hi.txt这样的文件名。请你给我解释为什么它会到来?
在其他浏览器中工作正常。

解决方案

Chrome出于安全目的显示它。



另请检查 meta stackoverflow上的链接

I am trying to upload a file in Chrome then it is giving some fakepath value.for eg. It is giving file name like "C:\fakepath\Hi.txt" .Could you please explain me why it is coming? In other browsers it is working fine.

解决方案

Chrome shows it for security purpose.

Also check this link on meta stackoverflow

这篇关于Chrome中的FileUpload提供了一些虚假的路径值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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