Skip to content

Commit a43f0c6

Browse files
authored
Merge pull request #10 from fumeapp/more-content
🚧 more content
2 parents f3c8a18 + 6b1a795 commit a43f0c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

aws/aws.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ func getExtension(contentType string) (string, error) {
141141
extension = "webp"
142142
case "image/svg":
143143
extension = "svg"
144+
case "application/json":
145+
extension = "json"
146+
case "application/yaml":
147+
extension = "yaml"
148+
case "application/x-yaml":
149+
extension = "yaml"
144150
case "application/vnd.ms-excel":
145151
extension = "xls"
146152
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
@@ -151,6 +157,8 @@ func getExtension(contentType string) (string, error) {
151157
extension = "csv"
152158
case "application/csv":
153159
extension = "csv"
160+
case "text/tab-separated-values":
161+
extension = "tsv"
154162
default:
155163
return "", errors.New("unable to detect Content Type: " + contentType)
156164
}

0 commit comments

Comments
 (0)