Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4180 closed defect (bug) (invalid)

SVG icons for plugins are always downloaded, despite image/svg+xml mime-type

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Priority: lowest
Component: Plugin Directory Keywords: needs-patch


I've added an SVG icon to a plugin of mine ( The file always gets downloaded in the browser when viewed directly at its URL.

I've set the mime type (via the svn:mime-type property) to image/svg+xml but it has no effect. I suspect this might be a server level configuration that needs changing so SVGs can be served without being downloaded.

Change History (2)

#1 @Otto42
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

This is intentionally disabled for security reasons. Allowing authors the ability to serve SVG files directly would be a problem, as SVG files can contain javascripts which would then be served from the * domain.

#2 @SergeyBiryukov
5 years ago

  • Component changed from General to Plugin Directory
Note: See TracTickets for help on using tickets.