Storage: fix svg upload (#52395)

This commit is contained in:
Artur Wierzbicki
2022-07-18 06:36:54 -04:00
committed by GitHub
parent 076851313d
commit 67ea2da57e
+1 -1
View File
@@ -110,7 +110,7 @@ func (s *httpStorage) Upload(c *models.ReqContext) response.Response {
entityType := EntityTypeJSON
mimeType := http.DetectContentType(data)
if strings.HasPrefix(mimeType, "image") {
if strings.HasPrefix(mimeType, "image") || strings.HasSuffix(path, ".svg") {
entityType = EntityTypeImage
}