Skip to content

Commit

Permalink
🍱 add more extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 13, 2024
1 parent 46063df commit 7a4f21d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ func getExtension(bytes []byte) (string, string, error) {
extension = "webp"
case "image/svg":
extension = "svg"
case "application/vnd.ms-excel":
extension = "xls"
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
extension = "xlsx"
case "text/comma-separated-values":
extension = "csv"
case "text/csv":
extension = "csv"
case "application/csv":
extension = "csv"
default:
return "", "", errors.New("unable to detect Content Type: " + contentType)
}
Expand Down

0 comments on commit 7a4f21d

Please sign in to comment.