I want to get the file size before uploading to server. I used following code
Dim fileDetails As IO.FileInfo fileDetails = My.Computer.FileSystem.GetFileInfo(fil
You can't access the client file system from an ASP.NET page, so you'll need upload the file before checking its size and rejecting it if it's too big.