Mvc maximum request length exceeded error

If you receive this error “Maximum request length exceeded.” greater than 4mb file you want to upload. IIS default max file size 4mb. If you want to upgrade max file upload size, this following code will help you.Add to web.config and try again.

<httpRuntime targetFramework="4.5" maxRequestLength="10485760" />

#asp-net-file-upload, #file-size, #file-upload, #file-upload-error, #max-file-size