Skip to content Skip to sidebar Skip to footer

Javascript How To Read A Local File Denied Access

I want to read a local file with javascript. I have the following function $(function() { console.log('antes de readTextFile'); readTextFile('file:///D:/carlota/eus

Solution 1:

If you're using IE you need to set Settings/Tools->Internet Options->Security->Custom Level and change security settings under "Miscellaneous" set "Access data sources across domains" to Enable.

But it won't work for the users of your app, if they're using IE and don't have the same setting

Post a Comment for "Javascript How To Read A Local File Denied Access"