java - checking file content before uploading to server
<p>i have got a situation now.</p>

<p>I need to develop a webpage where user can select a file to upload and before uploading the file to server i need to check first few lines of the file whether the data is valid or not and if the data is valid then upload the file, if not through an error message.</p>

<p>the file will be text file.</p>

<p>thanks,</p>

<p>Sandeep</p>
