Back to forum

Error in CSV local path

Answered

Unable to open file D:WDR\Test\ReportData.csv?442867340.
It seems that this file doesn’t exist or ‘Access-Control-Allow-Origin’ header is absent in the resource requested.
Above error comes when i pass local path for CSV file.
 
<script type=”text/javascript” charset=”utf-8″>
var pivot = new WebDataRocks({
container: “#wdr-component”,
toolbar: true,
report: {
dataSource: {
filename: “D:\WDR\\Test\\ReportData.csv”
}
}
});
</script>
 

Attachments:
Error.png

1 answer

WebDataRocks Team WebDataRocks July 24, 2020

Hello, Sushil,

Thank you for writing to us.

Please note that WebDataRocks is a web-based pivot grid, and hard drive files can’t be read by the web-page.

Our team would like to suggest storing files on the server and specifying the corresponding link in the filename.
In case it is necessary to connect to the local CSV file, we would like to mention that our component allows the user to select the file. Please have a look at the example.

Hope it helps.

Best regards,
Milena

Move up