I'm currently able to verify if the user has uploaded a file with xlsx, xls, or csv extensions. How can I ensure that the uploaded file not only has these extensions but also must contain two columns with 'Example' and 'Label' headers in the frontend? If it doesn't meet these requirements, how do I prompt them to upload the correct file?
<div class="form-group"><input type="file" name="annotatedsamplefile" id="annotatedsamplefile" accept=".xlsx, .xls, .csv" class=""></div>