用户老是抱怨上传速度太慢,怎么快速实现文件上传和传大点的文件??
谢谢!

解决方案 »

  1.   

    增加如下配置,一般可以自定义最大文件大小.<httpRuntimeexecutionTimeout="800"maxRequestLength="40960"useFullyQualifiedRedirectUrl="false"/>//executionTimeout預設是 90 秒,你要改的話:executionTimeout = "180"
      

  2.   

    大文件使用断点续传
    检查<httpRuntime maxRequestLength="51200" executionTimeout="3600"  appRequestQueueLimit="10000"/>
      

  3.   

    完全基于网页的传输有很多限制。QQ是使用本地ActiveX控件实现的。
      

  4.   

    网上找找关于大文件上传的资料,不知道jquery的文件上传是不是可以好点。上面提到的如何配置的问题,楼主可以参考一下。
      

  5.   

    如果你是通过Web Service上传文件,你需要用MTom
    在客户端的设置如下
      <basicHttpBinding>
            <binding name="FileTransferWSServiceSoapBinding"
              closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
              sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false"
              hostNameComparisonMode="StrongWildcard" maxBufferSize="6553600"
              maxBufferPoolSize="524288" maxReceivedMessageSize="6553600"
              messageEncoding="Mtom" textEncoding="utf-8" transferMode="Streamed"
              useDefaultWebProxy="true">
              <readerQuotas maxDepth="3200" maxStringContentLength="819200" maxArrayLength="1638400"
                maxBytesPerRead="409600" maxNameTableCharCount="1638400" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
          </basicHttpBinding>