Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ics file mime type

Tags:

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?!

like image 851
musoNic80 Avatar asked Jan 29 '10 18:01

musoNic80


People also ask

What is MIME type of file?

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

Do ICS files work with Outlook?

Events are sometimes distributed as . ICS files, which you can easily add to your calendar in Outlook.


1 Answers

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

like image 147
jckdnk111 Avatar answered Sep 28 '22 09:09

jckdnk111