London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

File upload component and file size

Vote:
0

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:
1

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:
2

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.