From 00b6eb44ca0f77ad20c27c4c96f0b4a9acda3bf1 Mon Sep 17 00:00:00 2001 From: yussuf Date: Tue, 25 Jun 2019 19:12:07 +0800 Subject: [PATCH] fix jpg image --- aliyun_content_type.go | 1 + constant.go | 1 + 2 files changed, 2 insertions(+) diff --git a/aliyun_content_type.go b/aliyun_content_type.go index 301051e..369506b 100644 --- a/aliyun_content_type.go +++ b/aliyun_content_type.go @@ -11,6 +11,7 @@ var aliyunContentTypeMapper = map[string]func(filename string) []oss.Option{ ContentTypeCSV: aliyunContentTypeCSV, ContentTypePNG: aliyunContentTypePNG, ContentTypeJPEG: aliyunContentTypeJPEG, + ContentTypeJPG: aliyunContentTypeJPEG, ContentTypePDF: aliyunContentTypePDF, ContentTypeZip: aliyunContentTypeZip, ContentTypeAPK: aliyunContentTypeApk, diff --git a/constant.go b/constant.go index 8d51a13..92aa750 100644 --- a/constant.go +++ b/constant.go @@ -11,6 +11,7 @@ const ( ContentTypeCSV = "csv" ContentTypePNG = "png" ContentTypeJPEG = "jpeg" + ContentTypeJPG = "jpg" ContentTypePDF = "pdf" ContentTypeZip = "zip" ContentTypeAPK = "vnd.android.package-archive"