I am making a webpage that uploads csv files to the server using the HTML5 file upload API. But before I upload I would like to verify if the csv contains certain columns. E.g. I require a column called "id" and if that column doesn't exist I do no want to upload it.
I need this because the files are often very large and I don't want to wait until the files is completely upload and then find out something was wrong.
I think your problem is similar to How to parse a .csv file that is local to my system in a HTML5 document?.
You can do your test on the .csv files locally with the JS FileAPI. But you need to consider that HTML5 is a draft at this time and not a general implemented standard.
©2020 All rights reserved.