title: max upload length
body: <p>Things I already know about upload size limits in MVC:</p>
  
  <ol>
  <li>For IIS7 you have to set both <code>maxAllowedContentLength</code> and <code>maxRequestLength</code> for a max upload size</li>
  <li>I know 1 property is in bytes and the other in kilobytes</li>
  <li>You can use the location property to specify a fixed location</li>
  </ol>
  
  <p>I have an upload component which should be able to handle up to 200MB files. I dont think its right to set the <code>maxlimit</code> for every single page to 200MB so i want to use the dynamic request URL as location.</p>
  
  <p>The routing pattern for the upload URL is something like this: <code>{dynamicvalue}/ConvertModule/Upload</code></p>
  
  <p>("ConvertModule" is the controller and "Upload" is the action.) The hard part is <code>{dynamicvalue}</code>, because of this i cant set a fixed location in <code>web.config</code>. </p>
  
  <p>I don't want to use flash uploads or something like that as a solution because of session hijacking.</p>
  
  <ul>
  <li><strong>Question 1</strong> (most important to me): Is there a way to set the upload limit for the giving routing pattern only?</li>
  <li><strong>Question 2</strong>: Is it possible to show a custom warning when the upload size was exceeded?</li>
  </ul>