I want HTML link to .ics file to open in calendar app when clicked, currently opens file as plain text. Suggestions?

后端 未结 2 850
半阙折子戏
半阙折子戏 2020-12-08 00:57

I am linking to an .ics file exported from Apple iCal in an HTML web page.


This link will open

2条回答
  •  轮回少年
    2020-12-08 01:49

    If your site is built on Linux like mine you can simply add a line to your htaccess file to make it open as a download instead of a text page.

    add this to your htaccess file:

    AddType text/calendar .ics
    

提交回复
热议问题