diff --git a/pkg/services/store/http.go b/pkg/services/store/http.go index 9f207d9a7a1..2523e500bc0 100644 --- a/pkg/services/store/http.go +++ b/pkg/services/store/http.go @@ -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 }