2016-12-28 12 views
3

とファイルサイズを受け入れるために働いていない私は、サイズ1.10ギガバイトでcsvファイルをアップロードしようとしていると私は、ユーザーがサイズ10ギガバイトまでのファイルをアップロードできるようにしたいと思います。Web.configファイルの設定は以上1ギガバイト

のWeb.configの設定

<system.web> 
    <authentication mode="None" /> 
    <compilation debug="true" targetFramework="4.5" /> 
    <httpRuntime maxRequestLength="10240000" targetFramework="4.5" /> <!-- this will file upload up to 10 gb--> 
    </system.web> 
<system.webServer> 
    <security> 
     <requestFiltering> 
     <requestLimits maxAllowedContentLength="10240000" /><!-- iis setting to handle file upload up to 10 gb--> 
     </requestFiltering> 
    </security> 
    <modules> 
     <remove name="FormsAuthentication" /> 
    </modules> 
    </system.webServer> 

エラーは:enter image description here

上記の設定は​​に基づいています。

私はng-File Uploadを使用してファイルをサーバーにアップロードしています。

+0

このリンクを確認してください。 [http://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7] [1] – Ilaria

答えて

3

maxAllowedContentLengthの値を大きくします。 maxAllowedContentLengthの最大値は4,294,967,295バイト= 3,99 GBです。

2

最大3.99GBに設定できます。 MSDNmaxAllowedContentLengthによると、最大値は4,294,967,295バイト= 3.99GBです。

関連する問題