InputFile control can upload file to server. It has an "accept" property, by which program can decide what format image can be uploaded. "accept" property has choices like "image/gif", "image/jpeg", "image/tiff".
What if I want to upload all kinds of image file but don't upload other kinds of file such as word file or excel file How to do
<form id="kk" runat="server">
<input type=file accept="img/jpeg" runat=server id="dd"/>
</form>

How to upload all kinds of image files?
remedios_
<form enctype="multipart/form-data" runat="server">
Select File to Upload:<input id="File1" type="file" accept="image/*" runat="server"/>
use the contentType property of the httpPostedFile class to run a query against upload and verify that it met the image parameters.
Hoe this help you..
nomer