File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments