Skip to content

Commit

Permalink
🚧 more content
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 20, 2024
1 parent f3c8a18 commit 6b1a795
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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)
}
Expand Down

0 comments on commit 6b1a795

Please sign in to comment.