Part 3 – An SVG Walk through: Delivering SVG files from your host


The proper mime type for delivering svg files is “image/svg+xml” most hosts are already set up for SVG files. One would need to go into the control panel to set up global mime types.

As an alternative the .htaccess file can be used – add the following line.

AddType image/svg+xml svg

If perl is being used it would supply this http header information.

print “Content-type: image/svg+xml\n\n”;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: