IE and local file reading

后端 未结 2 912
轻奢々
轻奢々 2020-12-06 07:49

I\'ve just watched the mozilla File API file reading as

new FileReader();

etc. and I must ask is there something like that for IE?

2条回答
  •  醉酒成梦
    2020-12-06 08:04

    Yes, you can use ActiveX' FileSystemObject. However, an confirmation box is shown to the user everytime he runs the code. Some users might not trust you and could choose not to run the ActiveX control. Also, please note that some users also use non-IE browsers which don't support FileReader (Safari, older versions of Firefox and so on). By adding ActiveX, you still won't have 100% support for file-related APIs.

提交回复
热议问题