How to import CSV file using DataTables Editor?
How to import CSV file using DataTables Editor?

Hello,
In my DataTables editor project, I am using the following example to upload CSV file: https://editor.datatables.net/examples/extensions/import.html.
Unfortunately, it neither uploads the file nor shows any message!!
Does anyone know any working example of importing CSV file?
-Thanks
This discussion has been closed.
Answers
The example you linked to is working. You can use the
Export CSV
then import the file you just exported. You will add 57 records to the table for a total of 114.If you are using Bootstrap then maybe you are seeing the issue in this thread. If this does't help then we would need a link to your page or a test case replicating the issue to offer any suggestions.
Kevin
@kthorngren I am using Bootstrap 4 but the thread is related to Bootstrap 3
@allan can confirm if the fix he provided will work with BS4. It replaces
editor.bootstrap.min.js
. Not sure what differences there are betweeneditor.bootstrap.min.js
andeditor.bootstrap4.min.js
for BS4. You can give it a try.Kevin
@kthorngren
I got the problem. When I select the file there should be a second popup/modal from where we can save data. But the second popup is not shown. When I block
editor.bootstrap4.min.js
, I can show the content of the second popup/modal and able to import (although not as a popup). This is a similar problem in the link you provide.@allan Can you tell me how can I fix that issue? I mean once to select a file how can I show the second popup/modal window?
Yes, I've applied fixes for both the Bootstrap 3 and 4 integrations for Editor. Both will be available as part of the 1.9.1 release of Editor which will be later this month.
Until then, here is the updated Bootstrap 4 integration file for Editor:
Allan