diff --git a/aws/aws.go b/aws/aws.go index ce4be61..2e4dde2 100644 --- a/aws/aws.go +++ b/aws/aws.go @@ -126,10 +126,18 @@ func getExtension(bytes []byte) (string, string, error) { contentType := http.DetectContentType(bytes) switch contentType { + case "image/jpg": + extension = "jpg" case "image/jpeg": extension = "jpg" case "image/png": extension = "png" + case "image/gif": + extension = "gif" + case "image/webp": + extension = "webp" + case "image/svg": + extension = "webp" default: return "", "", errors.New("unable to detect Content Type: " + contentType) }