PLT-1316/PLT-3280 Change client-side max file size limit (#3354)

* Change client-side max file size limit

It now relies on the value set in config.json.
Re-enable and tweak the max file size setting in system console.

* Update file upload error message
Этот коммит содержится в:
Thomas Balthazar
2016-07-05 21:37:21 +02:00
коммит произвёл Harrison Healey
родитель 71bd413b25
Коммит f4dd8e5796
6 изменённых файлов: 32 добавлений и 28 удалений

Просмотреть файл

@@ -256,6 +256,7 @@ func getClientConfig(c *model.Config) map[string]string {
props["EnableCustomEmoji"] = strconv.FormatBool(*c.ServiceSettings.EnableCustomEmoji)
props["RestrictCustomEmojiCreation"] = *c.ServiceSettings.RestrictCustomEmojiCreation
props["MaxFileSize"] = strconv.FormatInt(*c.FileSettings.MaxFileSize, 10)
if IsLicensed {
if *License.Features.CustomBrand {