mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
Storage: fix svg upload (#52395)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user