diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-08-12 17:34:30 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-08-12 17:34:30 -0400 |
commit | 6d9e715e265a3265841bc351e6b22a4503c20c92 (patch) | |
tree | b77c05ed7cd404da06ac00a23e2be72be3ab4580 /model | |
parent | eb3ca46982fbda3b34143022daaf15446cb4109a (diff) | |
parent | 7a355d2f2eeb38ac61e4bf99ea67a79cd0e9a6a3 (diff) | |
download | chat-6d9e715e265a3265841bc351e6b22a4503c20c92.tar.gz chat-6d9e715e265a3265841bc351e6b22a4503c20c92.tar.bz2 chat-6d9e715e265a3265841bc351e6b22a4503c20c92.zip |
Merge pull request #368 from nickago/MM-1911
MM 1911 Added support for .jpeg in addition to .jpg
Diffstat (limited to 'model')
-rw-r--r-- | model/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/file.go b/model/file.go index 3d38ddbd1..85545d718 100644 --- a/model/file.go +++ b/model/file.go @@ -13,8 +13,8 @@ const ( ) var ( - IMAGE_EXTENSIONS = [4]string{".jpg", ".gif", ".bmp", ".png"} - IMAGE_MIME_TYPES = map[string]string{".jpg": "image/jpeg", ".gif": "image/gif", ".bmp": "image/bmp", ".png": "image/png", ".tiff": "image/tiff"} + IMAGE_EXTENSIONS = [5]string{".jpg", ".jpeg", ".gif", ".bmp", ".png"} + IMAGE_MIME_TYPES = map[string]string{".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".bmp": "image/bmp", ".png": "image/png", ".tiff": "image/tiff"} ) type FileUploadResponse struct { |