U4-7394 - Missing maxFilseSize variable from web.config in the backoffice

Created by Simon Busborg 12 Nov 2015, 09:53:47 Updated by Claus Jensen 25 Nov 2015, 08:44:07

Is required for: U4-6924

We already have for fileTypes in Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes, but need something similar for maxFileSize.

1 Attachments

Comments

Shannon Deminick 23 Nov 2015, 14:21:12

PR for review: https://github.com/umbraco/Umbraco-CMS/pull/925

Here's the notes for this value:

Optional Int32 attribute.
Specifies the limit for the input stream buffering threshold, in KB. This limit can be used to prevent denial of service attacks that are caused, for example, by users posting large files to the server.
The default is 4096 (4 MB).

... so it's very important to know that this value will be returned in JSON as a string, so you'll need to parse to INT but in some rare cases it could return null so you'll need to check for that too. And the value is in KB


Shannon Deminick 23 Nov 2015, 14:22:15

See screenshot for data format:


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0

Due in version: 7.4.0

Sprint: Sprint 3

Story Points:

Cycle: