How do I make sure a file is a CSV file before i start to try and process it?
Posted on 2006-07-20
I have a webapp, and we require people to upload a CSV file for various activities - data eventually gets stored in a DB however.
It all works if you upload a CSV file...
but if I upload file in a different format.. how can I detect this before/during/after processing the file into arrays etc?
Thanks in advance :)