how the system knows whether we are uploading a csv fie or a xls file?
<p>I am new to uploading a file to database.</p>

<p>I wants to know the process how the system will identify the file in uploading whether it is a csv file or a xml file?</p>

<p>What is the difference between csv file and xls file?</p>

<p>Benefits and drawbacks of each?</p>

<p>In my application it is configured with csv file upload but i am testing it for a xml file upload. Then it is raising an error as <code>string literal too long</code>. </p>

<p>Can you explain how to resolve this problem?</p>
