2016-12-27 21 views
1

InfragisticsのigUploadを使用して複数のファイルをアップロードしています。ファイルサイズが小さいよりも3メガバイトときにすべてが正常に動作しますが、私は大きなサイズのファイルをアップロードしようとすると、それはサイズの大きいファイルをアップロードするとigUploadでエラーが発生する

このエラーを失敗し、戻り、あなたの現在のファイルのステータスを取得できませんでした!おそらく接続が

を落とした私はまた、10485760にuploadUtilsBufferSizeを変更したが、まだ何も大きなファイルで動作しません。以下は、igUplaodの構成です。

Button.igUpload({ 
    mode: 'multiple', 
    multipleFiles: true, 
    AutoStartUpload: false, 
    progressUrl: "IGUploadStatusHandler.ashx", 
    controlId: "upload1", 
    labelUploadButton: "Upload", 
    onError: function(evt, ui) { 
     if (ui.errorType == "serverside") { 
      ErrorMessage.append("<p>" + ui.serverMessage + "</p>"); 
     } else if (ui.errorType == "clientside") { 
      ErrorMessage.append("<p>" + ui.errorMessage + "</p>"); 
     } 
    } 
}); 

答えて

4

IIS Webサーバーには最大要求長の制限があります。 IIS 6の場合は4 MBです(詳細はhere)。 IIS 7以降では28.6 MB(詳細はhere)です。

IIS 6(web.configファイル):あなたはweb.configファイルで次の設定を試してください使用しているIISのバージョンに依存し

<system.web> 
    <httpHandlers> 
     <add verb="GET" type="Infragistics.Web.Mvc.UploadStatusHandler" 
         path="IGUploadStatusHandler.ashx" /> 
    </httpHandlers> 
    <httpModules> 
     <add name="IGUploadModule" type="Infragistics.Web.Mvc.UploadModule" /> 
    </httpModules> 
    <!--OPTIONAL: Set the maximum request length. 
    By default the request lenght is 4 MB. 
    More info: http://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx--> 
    <httpRuntime executionTimeout="3600" maxRequestLength="2097151000"/> 
</system.web> 

は(およびそれ以降)7をIIS( web.configファイル):

<system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"> 
     <add name="IGUploadModule" type="Infragistics.Web.Mvc.UploadModule" 
            preCondition="managedHandler" /> 
    </modules> 
    <handlers> 
     <add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*" 
      type="Infragistics.Web.Mvc.UploadStatusHandler" preCondition="integratedMode" /> 
    </handlers>  
    <security>  
     <requestFiltering>  
      <!--OPTIONAL: Set the maximum request length. 
      By default the request lenght is ~30 MB. 
      More info: http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits--> 
      <requestLimits maxAllowedContentLength="2097151000"/> 
     </requestFiltering>  
    </security> 
</system.webServer> 

PS:この情報は、のIgnite UIのヘルプhereに記載されています。

関連する問題