how to pass uploaded file name to java script asp.net
<p>for the </p>

<pre><code>&lt;input type="file" name="addfile" id="addfile" /&gt;
 &lt;input type="submit" id="btnadd" value="Addfile" onclick="filetype(addfile)" /&gt;
</code></pre>

<p>i need to check the file type(pdf or doc etc) in javascript that is added for this what do i need to pass in filetype onclick function to have addfile name passed instead of addfile passed in it ?</p>

<p>thanks,</p>

<p>michaeld </p>
