summaryrefslogtreecommitdiffstats
path: root/api/license.go
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-05-24 15:07:42 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2016-05-24 09:07:42 -0400
commit7e2b539de484ac4f2e97eafce6b8d63ffa2caf13 (patch)
treee85b742e695c611958f249a4e39d0e6370c1f9b0 /api/license.go
parent8e5c31859012516afcfc28eddbb644a4c96fe9d3 (diff)
downloadchat-7e2b539de484ac4f2e97eafce6b8d63ffa2caf13.tar.gz
chat-7e2b539de484ac4f2e97eafce6b8d63ffa2caf13.tar.bz2
chat-7e2b539de484ac4f2e97eafce6b8d63ffa2caf13.zip
Max_File_Size setting in System Console > File Settings (#3070)
Diffstat (limited to 'api/license.go')
-rw-r--r--api/license.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/api/license.go b/api/license.go
index 1dbb2b281..f9ecce486 100644
--- a/api/license.go
+++ b/api/license.go
@@ -5,12 +5,13 @@ package api
import (
"bytes"
- l4g "github.com/alecthomas/log4go"
- "github.com/mattermost/platform/model"
- "github.com/mattermost/platform/utils"
"io"
"net/http"
"strings"
+
+ l4g "github.com/alecthomas/log4go"
+ "github.com/mattermost/platform/model"
+ "github.com/mattermost/platform/utils"
)
const (
@@ -48,7 +49,7 @@ func LoadLicense() {
func addLicense(c *Context, w http.ResponseWriter, r *http.Request) {
c.LogAudit("attempt")
- err := r.ParseMultipartForm(model.MAX_FILE_SIZE)
+ err := r.ParseMultipartForm(*utils.Cfg.FileSettings.MaxFileSize)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return