ics file mime type

musoNic80 picture musoNic80 · Jan 29, 2010 · Viewed 29.8k times · Source

I'm trying to upload an ics file to my site. It was exported from iCal on Mac OSX. I thought that ics files had a mime type of text/calendar, but for some reason this file seems to be of type Application/octet-stream. This makes the upload fail my verification tests. Anyone have any ideas why the type isn't what I expect?!

Answer

jckdnk111 picture jckdnk111 · Jan 29, 2010

Try adding a content-type of text/calendar to the header. If you are just serving it up from Apache you can look for instruction here: http://httpd.apache.org/docs/1.3/mod/mod_mime.html