是否有可能使用JavaScript从目录中读取文件? [英] Is it possible to read files from a directory using javascript?

查看:70
本文介绍了是否有可能使用JavaScript从目录中读取文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以使用javascript完成这项任务?

解决方案

不,出于安全原因。



您可以通过调用ActiveX或Flash,并让用户同意允许从这些插件访问文件系统,但 - 请不要。


I want to read a directory and fill a list with the name of those files.

Is it possible to do this tasks using javascript?

解决方案

No, for security reasons.

You might be able to do it by invoking ActiveX or Flash and having the user agree to permit file system access from these plugins, but - please don't.

这篇关于是否有可能使用JavaScript从目录中读取文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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