diff options
author | Wim <wim@42.be> | 2017-03-25 21:04:10 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-03-25 21:04:10 +0100 |
commit | eacb1c1771cec126593f99f50aca4584236475fa (patch) | |
tree | 5ae7d8271c28e378d1d5ca2d0e1e243717a9bdbe /vendor/github.com/mattermost/platform/model/file.go | |
parent | 07fd825349e8b7e86f8afb3843cb8e2c2afc7c74 (diff) | |
download | matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.gz matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.bz2 matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.zip |
Update vendor (mattermost)
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/file.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/file.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/model/file.go b/vendor/github.com/mattermost/platform/model/file.go index c218c424..20f6236d 100644 --- a/vendor/github.com/mattermost/platform/model/file.go +++ b/vendor/github.com/mattermost/platform/model/file.go @@ -8,6 +8,10 @@ import ( "io" ) +const ( + MaxImageSize = 6048 * 4032 // 24 megapixels, roughly 36MB as a raw image +) + var ( 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"} |