From 6b1a79553f418f8b653575bf818f869347a1c136 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Tue, 20 Aug 2024 15:08:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20more=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aws/aws.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aws/aws.go b/aws/aws.go index 777cb8a..80b5881 100644 --- a/aws/aws.go +++ b/aws/aws.go @@ -141,6 +141,12 @@ func getExtension(contentType string) (string, error) { extension = "webp" case "image/svg": extension = "svg" + case "application/json": + extension = "json" + case "application/yaml": + extension = "yaml" + case "application/x-yaml": + extension = "yaml" case "application/vnd.ms-excel": extension = "xls" case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": @@ -151,6 +157,8 @@ func getExtension(contentType string) (string, error) { extension = "csv" case "application/csv": extension = "csv" + case "text/tab-separated-values": + extension = "tsv" default: return "", errors.New("unable to detect Content Type: " + contentType) }