2012-08-14 9 views
5

Qualcuno sa come rimuovere il limite di caricamento di 30 MB, in particolare per IIS Express?Rimuovi limite caricamento 30 MB su IIS express

Ho provato la modifica del applicationhost.config e

<security> 
     <requestFiltering> 
     <requestLimits maxAllowedContentLength="1050000"></requestLimits> 
     </requestFiltering> 
    </security> 

<location path="api/media/AsyncUpload"> 
    <system.web> 
     <httpRuntime maxRequestLength="1050000" /> 
<!-- The size specified is in kilobytes. The default is 4096 KB (4 MB). 1gb = 1048576 --> 
     </system.web> 
     </location> 

sembrano essere impostato correttamente?

Qualche idea?

+1

maxAllowedContentLength impostato in BYTES. maxRequestLength in KILOBYTES –

risposta

9

È necessario modificare il file di configurazione del server. Il campo che si sta cercando è

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

Se non esiste, aggiungendo che dovrebbe ignorare le impostazioni predefinite.

+1

Whoops stava impostando quello in KB, non B :) –

+1

A proposito, il file di configurazione è in questo posto: ~ \ Documents \ IISExpress \ config – guogangj