4
Contributors
4
Replies
12
Views
5 Years
Discussion Span
Last Post by mani508
0

You have to use FileUpload.PostedFile properties.

int fileLen = FileUpload1.PostedFile.ContentLength;
string contentType=FileUpload1.PostedFile.ContentType;
...
if(fileLen>=1 && fileLen<=1024*1024)
{
  //
}
if(contentType=="image/jpeg")
 {
   //code
 }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.