File upload component and file size



What setting is the file upload component using when determining how large files it´s possible to upload?

Is it in web.config or where can I adjust the maximum requesat length for the file upload component?

Best regards Kristian

Mar 01, 2018 12:46

I think I found the answer. Please confirm if it's the right way to do it.

It's two places in web.config where you have to set the request value:

  1. Web.Config/system.web/httpRuntime/maxRequestLength (size in KB)
  2. Web.Config/system.webServer/security/requestFiltering/requestLimits/maxAllowedContentLength (size in bytes)


Mar 01, 2018 13:12

Hi, short answer you need to set them both.

Under system.webserver affects IIS and the system.web affects application. Bonus: You can define also different values per location -> system.web section ;)

(Good that you noticed that one uses kilobytes and the other uses bytes, how convinient is this, right ;)?)

Edited, Mar 01, 2018 13:29
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.