3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Netcode
0

That happens by itself, why do you want to specify the file size. The control takes care of the same.

0

You have to specify file size so the user does not try to ulpoad a file larger than what the file-Upload control can handle. Besides, it helps in memory management of your server

0

>how do i specify a file size

Use FileUpload1.FileBytes.Length property

> file tyoe to be uploaded.

Have a look at FileUpload1.PostedFile.ContentType

if(FileUpload1.PostedFile.ContentType=="image/jpg")
  {

  }
0

adatapost, thanks a lot but am sure you meant:

if (fileUpload1.PostedFile.ContentType==""image/JPEG") Then 
'
'
'
End If
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.