I'm currently looking into the possibilities of a web based data import app and slightly stuck at the first hurdle.
Say the client has a CSV text file with some 5000+ records to be imported to a DB on the server, can I use javascript/jQuery to read only the first few lines to verify it is indeed a CSV file and get the structure of the data before uploading the entire file to the server?
I've been googling it and not found anything helpful, is JS capable of this?
How do you do partial file uploads?
It will be a C#.net MVC app. No flash!
Any help appreciated.
Edit: I realise a 5000 line txt file isnt that big and can be uploaded straight off and be processed server side but theres the potential for files containing 50k+ records over a slow wireless connection.
Say the client has a CSV text file with some 5000+ records to be imported to a DB on the server, can I use javascript/jQuery to read only the first few lines to verify it is indeed a CSV file and get the structure of the data before uploading the entire file to the server?
I've been googling it and not found anything helpful, is JS capable of this?
How do you do partial file uploads?
It will be a C#.net MVC app. No flash!
Any help appreciated.
Edit: I realise a 5000 line txt file isnt that big and can be uploaded straight off and be processed server side but theres the potential for files containing 50k+ records over a slow wireless connection.
Last edited: