diff options
-rw-r--r-- | api/file.go | 2 | ||||
-rw-r--r-- | i18n/en.json | 2 |
2 files changed, 2 insertions, 2 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 } diff --git a/i18n/en.json b/i18n/en.json index f8163557b..4d5ccd525 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -983,7 +983,7 @@ }, { "id": "api.file.upload_file.large_image.app_error", - "translation": "Unable to upload image file. File is too large." + "translation": "File above maximum dimensions could not be uploaded: {{.Filename}}" }, { "id": "api.file.upload_file.storage.app_error", |