Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get file upload file size in MB c#

var fileSize = imageFile.ContentLength;
if ((fileSize / 1048576.0) > 10)
{
    // image is too large
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #upload #file #size #MB
ADD COMMENT
Topic
Name
5+7 =