0

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?

1 Answers1

0

The ContentLength property which you are seeing in HttpPostedFileBase class contains the number of bytes in the posted file.

int counts = file.contentlength

Krsna Kishore
  • 8,233
  • 4
  • 32
  • 48