summaryrefslogtreecommitdiffstats
path: root/model/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/file.go')
-rw-r--r--model/file.go4
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 {