Page 1 of 1

Adding MIME Type to your Web Server

Posted: Fri Aug 12, 2011 4:37 pm
by smooth
Here is a basic graphic to help those who need to add the MIME types to their Web Servers.
Shown here are the two common Pano2VR required MIME types.
.manifest and .svg

Both required for HTML5 panoramas if wanting to use either Scalable Vector Graphics (.svg) or Manifest (.manifest)
server_mime_types.jpg
server_mime_types.jpg (249.47 KiB) Viewed 2174 times
Server control panels will differ but the concept should remain the same.
Enter your MIME Type
Enter your file extension type
Click Add

Be 100% sure of the spelling and do NOT leave spaces before or after the entry.

Hope this helps.

Regards, Smooth 8)

Re: Adding MIME Type to your Web Server

Posted: Fri Aug 12, 2011 9:15 pm
by Sam Rohn
you can also just create a .htaccess file with the following contents

AddType text/cache-manifest .manifest
AddType image/svg+xml svg svgz

create a blank text file, name it htaccess without the (.) dot, paste in the above text, upload it to your server and add the dot after it is uploaded

sam

Re: Adding MIME Type to your Web Server

Posted: Fri Aug 12, 2011 9:58 pm
by smooth
Yup, if you are using an Apache server the .htaccess addition works fine.
Just as it is stated in the Pano2VR Wiki

I was just offering a visual guide for those who don't quite get it (seems there is a few of them out there).

Regards, Smooth 8)

Re: Adding MIME Type to your Web Server

Posted: Sat Dec 08, 2012 5:40 pm
by newbie
Thanks Smooth & Sam

Smooth, with GoDaddy hosting (Linux), I couldn't find a clear link in their "Control Panel" for "MIME Types" as your nifty keen clip showed. So I added the .htaccess file in the root as you described.

Hey Sam, you stated "....name it htaccess without the (.) dot ...", well I tried that and for it to work I had to name the file .htaccess (including the dot).

As I said, that worked for me, however, I noticed the .htaccess file is not visible in the FireFox application "FireFTP" file listing but is visible when I use the GoDaddy FTP File Manager. Strange ... computers ... you can't live without them BUT you CAN shoot them!

Thanks again guys