读取本地文件 [英] Read a local file

查看:95
本文介绍了读取本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网络服务器上托管的javascript是否无法读取客户端本地计算机上的文件? (这有明显的安全隐患)。我想我想知道用户是否可以进行任何访问,例如将文件拖放到浏览器中,或者从弹出窗口中明确选择文件来解决这个问题?

Is there no way for javascript hosted on a webserver to read a file on a client's local machine? (this has obvious security risks). I guess I'm wondering if there's any access granting a user can do, like drag and dropping a file into the browser, or explicitly selecting a file from a popup to get around this?

我知道flash 10允许读取本地文件,只是想知道是否有任何方法可以在javascript中执行此操作。

I know flash 10 allows reading of a local file, just wondering if there were any method to do this in javascript.

谢谢

推荐答案

...或者从弹出窗口明确选择一个文件来解决这个问题......

您当然可以将文件上传到您的服务器然后......

You could of course just upload the file to your server then...

这篇关于读取本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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