Saturday, 15 February 2014

svg - Resource interpreted as image but transferred with MIME type text/xml in xampp? -


I have a project without .htaccess (when I have .htaccess in your project then I already got the solution ) And it does not display my .svg normal images are displayed correctly. The error message is as follows:

  Resource image is interpreted as but the mime type has been transferred with text / XML.  

I am using xampp on OSX Yosemite version 10.10.1. Can I add anywhere in my xampp

  AddType image / svg + xml svgz AddEncoding gzip svgz  

?

Thanks in advance!

EDIT: I reinstalled XMPP and solved the problem. If I take a second step with this problem and one of the answers is correct, then I will leave it open.

It seems that depending on your OS you can add the definition of the appropriate mime type to the following location :

xampp \ apache \ conf \ mime.types or /etc/httpd/conf/mime.types

meditation Give the code that you are looking for to mime.types

The definition you want to add will be:

Image / svg + xml svg svgz

More info:


No comments:

Post a Comment