I am trying to upload an image to a windows server. I find that the HttpPostedFileBase contentlength is much larger than the actual size of the original image.
My question is which number is the actual traffic amount used for uploading the image, the original size or the contengLength?
The
ContentLength
property which you are seeing inHttpPostedFileBase
class contains thenumber of bytes
in the posted file.int counts = file.contentlength