diff options
author | Raphaƫl Bournhonesque <raphael0202@users.noreply.github.com> | 2016-11-15 15:37:52 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-11-15 09:37:52 -0500 |
commit | 526c392aad1f486dddb7cc411244f4446cb06a3a (patch) | |
tree | 03e69ac4dabf4cea1f71aecd5cd1739e2d32e42a /api | |
parent | e4f46124b0aa0d661bf59f229c0ebc3c7dc65d1d (diff) | |
download | chat-526c392aad1f486dddb7cc411244f4446cb06a3a.tar.gz chat-526c392aad1f486dddb7cc411244f4446cb06a3a.tar.bz2 chat-526c392aad1f486dddb7cc411244f4446cb06a3a.zip |
Update error message when uploading too large images (#4535)
Diffstat (limited to 'api')
-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 3fc61f469..dd075d3e0 100644 --- a/api/file.go +++ b/api/file.go @@ -171,7 +171,7 @@ func doUploadFile(teamId string, channelId string, userId string, rawFilename st if info.IsImage() { // Check dimensions before loading the whole thing into memory later on if info.Width*info.Height > MaxImageSize { - err := model.NewLocAppError("uploadFile", "api.file.upload_file.large_image.app_error", nil, "") + err := model.NewLocAppError("uploadFile", "api.file.upload_file.large_image.app_error", map[string]interface{}{"Filename": filename}, "") err.StatusCode = http.StatusBadRequest return nil, err } |