summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
Diffstat (limited to 'api4')
-rw-r--r--api4/team.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/api4/team.go b/api4/team.go
index fcc9323ac..2c229dce1 100644
--- a/api4/team.go
+++ b/api4/team.go
@@ -16,7 +16,8 @@ import (
)
const (
- MAX_ADD_MEMBERS_BATCH = 20
+ MAX_ADD_MEMBERS_BATCH = 20
+ MAXIMUM_BULK_IMPORT_SIZE = 10 * 1024 * 1024
)
func (api *API) InitTeam() {
@@ -641,7 +642,7 @@ func importTeam(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if err := r.ParseMultipartForm(10000000); err != nil {
+ if err := r.ParseMultipartForm(MAXIMUM_BULK_IMPORT_SIZE); err != nil {
c.Err = model.NewAppError("importTeam", "api.team.import_team.parse.app_error", nil, err.Error(), http.StatusInternalServerError)
return
}