【问题标题】:Does HttpPostedFileBase contentlength mean the actual traffic used to upload a file?HttpPostedFileBase contentlength 是否意味着用于上传文件的实际流量?
【发布时间】:2017-08-30 12:20:54
【问题描述】:

我正在尝试将图像上传到 Windows 服务器。我发现 HttpPostedFileBase contentlength 远大于原始图像的实际大小。

我的问题是上传图片的实际流量是多少,原始大小还是contengLength?

【问题讨论】:

    标签: asp.net webp


    【解决方案1】:

    您在HttpPostedFileBase 类中看到的ContentLength 属性包含已发布文件中的number of bytes

    int counts = file.contentlength

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-02
      • 2020-11-28
      • 2012-01-26
      • 2020-02-15
      • 2014-08-15
      • 2019-05-28
      相关资源
      最近更新 更多