Skip to content
IT // Adventures

Configuring the IIS Maximum File Upload Size

Configuring the IIS 'Max file upload size' with AppCmd or PowerShell.

1 min read

By default, IIS 7 only allows uploading files <30MB. You can change this setting GLOBALLY via appcmd.exe or PowerShell. “maxAllowedContentLength” is specified in bytes, so the example allows 100MB.

AppCmd

%systemroot%\system32\inetsrv\appcmd.exe set config -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600

PowerShell

Set-WebConfigurationProperty `
 -filter /system.webserver/security/requestfiltering/requestLimits `
 -name maxAllowedContentLength `
 -value 104857600