November Happy Hour will be moved to Thursday December 5th.

File upload component and file size

Vote:
 

Hi!

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

#188702
Mar 01, 2018 12:46
Vote:
 

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)

/Kristian

#188706
Mar 01, 2018 13:12
Vote:
 

Hi, short answer you need to set them both.

Under system.webserver affects IIS and the system.web affects asp.net 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 ;)?)

#188710
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.