Accessing local CSV files from a webpage?
Executed the following webpage:
var table = new AW.CSV.Table; table.setAsync(false); table.setURL("c:/test2.csv"); table.request();
It runs fine if the webpage url is a file, like c:\inetput\wwwroot\aw\test.htm
On the other hand if the webpage is executed as http:\\localhost\aw\test.htm then the request fails.
Can anyone shed a light on what's happening here? Security settings probably but which ones?
If accessing the webpage through the webserver, i.e. with http, then you can only read files(XML/CSV) located in the web server's directory and below.
As we run the examples usually locally, i.e. not through the web server, then we can read everything.
Which means unfortunately, unless someone corrects me, that if a user wants to read a local data file he will have to place it on the web server.
it must be http://..//
second thing is u must set all five permissions : R,WE,S& something
thirdtry with port no, say http://localhost:8080/aw/test.html
fourth always give extension as .html not .htm
The webpage cannot access it.
Your server program need copy the file to one of them
It should be aware of virtual directories' physical locations
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.