restlessminded / dokuwiki-plugin-svgEmbed

A dokuwiki plugin that allows the use of the standard media syntax, but SVG files are placed with the <embed> tag, not the <img> tag.
GNU General Public License v2.0
1 stars 2 forks source link

Instead of showing, my SVGs download themselves #11

Closed Kinboise closed 3 years ago

Kinboise commented 3 years ago

What I expect:

What I get:

What could be the problem? I'm using Windows Server 2019, PHP 7.3.4 NTS, Apache 2.4.39, DokuWiki "Hogfather", default template.

Thanks!

restlessminded commented 3 years ago

If it's not showing as image files without the plugin it sounds like your server doesn't correctly send the content type of SVG files. You may need to configure the server to send the right content type.

I suspect once it works without the plugin it will work with it as well.

Kinboise commented 3 years ago

Sorry it was my fault, I've been stupid to put that svg image/svg+xml line in a wrong file. Can't believe I spent my whole day trying to fix it. Thanks a lot!