IE and local file reading

user592704 picture user592704 · Jul 15, 2011 · Viewed 23.8k times · Source

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?

Answer

duri picture duri · Jul 15, 2011

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.