You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`maxAllowedContentLength` is specified in bytes, so this configuration would limit requests, and therefore uploaded files, to 2 megabytes
38
+
`maxAllowedContentLength` is specified in bytes. For example:
39
+
40
+
- 2 MB = 2,000,000 bytes
41
+
- 100 MB = 100,000,000 bytes
42
+
- 4 GB = 4294967295 (maximum value allowed)
26
43
27
-
{% hint style="info" %}
28
-
**Are you hosting your site on Umbraco Cloud?**
44
+
## Hosting on Umbraco Cloud
29
45
30
-
Umbraco Cloud uses IIS for hosting. This means you need to add the setting in a `web.config` file for this to work on your Umbraco Cloud hosted sites.
31
-
The upload size limit is 500mb on Umbraco Cloud.
32
-
{% endhint %}
46
+
Umbraco Cloud uses IIS for hosting, so changes must be made in the `web.config` file as described above. The default upload limit on Umbraco Cloud is 500 MB.
33
47
34
-
# Using Kestrel
48
+
To customize this limit, adjust the `maxAllowedContentLength` value in your `web.config` file accordingly.
35
49
36
-
Runtime settings allow you to configure the `MaxRequestLength` and `MaxQueryStringLength` for kestrel. If you want to upload files larger than 28.6MB, then you have to configure these settings. If nothing is configured requests and query strings can only be the default size and smaller.
50
+
## Using Kestrel
37
51
38
-
An example of a configuration could look something like this:
52
+
Kestrel’s runtime settings allow you to configure `MaxRequestLength` and `MaxQueryStringLength`. If you want to upload files larger than 28.6MB, update these values in the `appsettings.json` file.
53
+
54
+
Example configuration:
39
55
40
56
```json
41
57
"Umbraco": {
@@ -48,8 +64,13 @@ An example of a configuration could look something like this:
48
64
}
49
65
```
50
66
51
-
`MaxRequestLength` is specified in kilobytes. This configuration will limit requests, and therefore uploaded files, to 2 megabytes, and a maximum query string length of 90 characters.
67
+
-`MaxRequestLength` is specified in kilobytes. For example:
68
+
- 2000 KB = 2 MB
69
+
- 100000 KB = 100 MB
70
+
-`MaxQueryStringLength` sets the maximum number of characters in the query string.
0 commit comments