get file upload file size in MB c#

79

get file upload file size in MB c# -

var fileSize = imageFile.ContentLength;
if ((fileSize / 1048576.0) > 10)
{
    // image is too large
}

Comments

Submit
0 Comments