IIS 7.0 üzerinden dosya yüklemek 30 mb ile sınırlıdır

30 mb üzerindeki dosyaları IIS 7.0 üzerinde yüklemek isterseniz şekildeki gibi bir hata mesajı döner.

You are probably hitting the file upload limit of IIS7.By default in IIS 7 requestFiltering  has the MaxAllowedContentLength property enabled.It specifies, in bytes, the maximum length of the content in a request. The default is 30MB.

To change this value you must edit %windir%\System32\inetsrv\config\applicationHost.config file.”

İster applicationHost.config dosyasından isterseniz web.config dosyasına <system.webServer> düğümü içerisine aşağıdaki kodu yazmanız daha büyük dosyaları yazmanız için yeterli olacaktır.


<system.webServer>
<security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="1000000000"/>
            </requestFiltering>
        </security>
</system.webServer>

Yorumlar

Yorum Gönder

Bu blogdaki popüler yayınlar

22.06.2020 - 26.06.2020 arası işler

Asp.net RestSharp ile data post etmek

List Box Item içindeki elemanları aşağı veya yukarı taşımak