ASP.NET web.config settings for large file uploading

<configuration>
     <appSettings>
	….. 
     </appSettings>
  
     <system.web>
          <compilation debug="true" targetFramework="4.5"/>
          <httpRuntime targetFramework="4.5" 
                       executionTimeout="1000" 
                       maxRequestLength="214748364" 
                       useFullyQualifiedRedirectUrl="false" 
                       minFreeThreads="8" 
                       minLocalRequestFreeThreads="4" 
                       appRequestQueueLimit="100" />
     </system.web>

     <connectionStrings>
        ….
     </connectionStrings>
  
     <system.webServer>
          <validation validateIntegratedModeConfiguration="false" />
          <handlers>
              <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
              <remove name="OPTIONSVerbHandler" />
              <remove name="TRACEVerbHandler" />
              <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*"   
                   type="System.Web.Handlers.TransferRequestHandler"  
                   preCondition="integratedMode,runtimeVersionv4.0" />
           </handlers>
           <security>
               <requestFiltering>
                   <requestLimits maxAllowedContentLength="1073741824" />
               </requestFiltering>
           </security>
       </system.webServer>
    
     <runtime>
        ….
     </runtime>
</configuration>


Custom attribute in web.config

<configuration>
  <appSettings>
    	<add key="MyCustomAttribute" value="4" />
  </appSettings>
  <system.web>
  </system.web>
  <connectionStrings>        
  </connectionStrings>
</configuration>


Now access MyCustomAttribute from Controller

using System.Configuration;
ConfigurationManager.AppSettings["MyCustomAttribute "];