PHP script: download ics file
I am setting up an "export as ics" (iCal) feature for our weekly school curriculum. The download program works, but when I open it in iCal (Mac OS X) iCal informs me that the calendar is invalid. I opened the file in a text editor and it looks good to me.
I suspect my download.php script is wrong or is setting the wrong mimetype.
I've tried text
and text/calendar
. Bad luck.
So my question is this: what's the correct mimetype for ics files?
source to share
text/calendar
From RFC 2447 iCalendar Message-Based Interaction Protocol :
2.1 MIME Media Type
A MIME object containing content information formatted in accordance with
this document will be referred to as a Text / Calendar Content Type. it is assumed that this type of content will be transported via MIME email transport.
source to share
It might be useful for others by its iCal validator - http://severinghaus.org/projects/icv /
source to share