summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-14 09:35:48 -0400
committerGitHub <noreply@github.com>2017-03-14 09:35:48 -0400
commitad0ed008fe54534fcc089f479df606ab921901a9 (patch)
treea5fda084fb7ea61941449b393a6084f0c049195c /api
parentd03367c56005470396d883d273323ecbd8d4f243 (diff)
downloadchat-ad0ed008fe54534fcc089f479df606ab921901a9.tar.gz
chat-ad0ed008fe54534fcc089f479df606ab921901a9.tar.bz2
chat-ad0ed008fe54534fcc089f479df606ab921901a9.zip
Implement brand image endpoints for APIv4 (#5733)
* Implement brand image endpoints for APIv4 * Fix unit test
Diffstat (limited to 'api')
-rw-r--r--api/admin.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/api/admin.go b/api/admin.go
index 5e0d8c28c..14c355701 100644
--- a/api/admin.go
+++ b/api/admin.go
@@ -230,12 +230,6 @@ func getAnalytics(c *Context, w http.ResponseWriter, r *http.Request) {
}
func uploadBrandImage(c *Context, w http.ResponseWriter, r *http.Request) {
- if len(utils.Cfg.FileSettings.DriverName) == 0 {
- c.Err = model.NewLocAppError("uploadBrandImage", "api.admin.upload_brand_image.storage.app_error", nil, "")
- c.Err.StatusCode = http.StatusNotImplemented
- return
- }
-
if r.ContentLength > *utils.Cfg.FileSettings.MaxFileSize {
c.Err = model.NewLocAppError("uploadBrandImage", "api.admin.upload_brand_image.too_large.app_error", nil, "")
c.Err.StatusCode = http.StatusRequestEntityTooLarge