diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
commit | 0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7 (patch) | |
tree | 3f86c6872aa94ee0530f8a6d2b7458fa655c11de /api/file.go | |
parent | b7a821c3410ecd165241e2dbcf2c8376ae402124 (diff) | |
parent | 6f10c401a422170d42d9cee8ec01b94808fa338f (diff) | |
download | chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.tar.gz chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.tar.bz2 chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.zip |
Merge pull request #1 from mattermost/master
to me
Diffstat (limited to 'api/file.go')
-rw-r--r-- | api/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file.go b/api/file.go index c7c3b7b3e..10167c6ff 100644 --- a/api/file.go +++ b/api/file.go @@ -114,7 +114,7 @@ func uploadFile(c *Context, w http.ResponseWriter, r *http.Request) { return } - fileUrl := c.TeamUrl + "/api/v1/files/get/" + channelId + "/" + c.Session.UserId + "/" + uid + "/" + files[i].Filename + fileUrl := c.TeamUrl + "/api/v1/files/get/" + channelId + "/" + c.Session.UserId + "/" + uid + "/" + url.QueryEscape(files[i].Filename) resStruct.Filenames = append(resStruct.Filenames, fileUrl) } |