I tried doing this in a script tag of an HTML file, just to see if I could get it to work somehow:
<script>
var file = '/Users/amills001c/suman/test/output/test1.txt';
$.get(file);
</script>
I got an error, as expected:
XMLHttpRequest cannot load file:///Users/amills001c/suman/test/output/test1.txt. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
so my question is, is there any way to use AJAX to request files from the local filesystem without having a web server in place?
It seems possible, but sounds like I need to do some configuration. This is only for a local file and running a browser on my local workstation.