summaryrefslogtreecommitdiffstats
path: root/api/file.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-02-20 10:41:00 -0500
committerGitHub <noreply@github.com>2018-02-20 10:41:00 -0500
commitbabd795d792e95f6e708af6ee8207ef6877e2b32 (patch)
tree32116afb6e1ea7b598c41eaddb318cea8fabd132 /api/file.go
parentf85d9105925a82c5006654b99060506a0ff7d7af (diff)
downloadchat-babd795d792e95f6e708af6ee8207ef6877e2b32.tar.gz
chat-babd795d792e95f6e708af6ee8207ef6877e2b32.tar.bz2
chat-babd795d792e95f6e708af6ee8207ef6877e2b32.zip
MM-9556 Added ability to upload files without a multipart request (#8306)
* MM-9556 Added ability to upload files without a multipart request * MM-9556 Handled some unusual test behaviour
Diffstat (limited to 'api/file.go')
-rw-r--r--api/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file.go b/api/file.go
index 3b8984816..63432eda5 100644
--- a/api/file.go
+++ b/api/file.go
@@ -76,7 +76,7 @@ func uploadFile(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- resStruct, err := c.App.UploadFiles(c.TeamId, channelId, c.Session.UserId, m.File["files"], m.Value["client_ids"])
+ resStruct, err := c.App.UploadMultipartFiles(c.TeamId, channelId, c.Session.UserId, m.File["files"], m.Value["client_ids"])
if err != nil {
c.Err = err
return