I have been trying to display .svg files by uploading them to the Files folder of a course, and then linking to them as standard Moodle resources (Add a resource... >> Link to a file or website etc)
These display nicely with Internet Explorer (using the Adobe SVG Viewer plug-in), but not with Firefox or Opera (an Open with.../Download to... dialogue appears instead) even though these natively render SVG. I presume this is because Opera and Firefox, being standards-compliant, need to have the appropriate SVG MIME type passed to them from the webserver, whereas Internet Explorer renders the files as SVG based on their .svg extension alone.
See e.g. http://wiki.svg.org/MIME_Type
However, the SVG MIME types are correctly set up for the webserver, and indeed .svg files placed in non-Moodle directories on the webserver display correctly in all three browsers.
I'm guessing the problem arises because resources in the Files folder are located in the /moodledata folder outside the web root, so the appropriate SVG MIME types are not sent.
Is this the problem, and can anyone suggest a solution? I realise this is not exactly a 'show stopper', but it would still be nice if things worked well with Firefox & Opera.
I have attached a sample SVG file, in case anyone would like to experiment.