Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serve .ICS files as binaries purely through .htaccess or apache conf

When I upload an .ICS file to the server and try to download it, it appears as text. I would like the "Save as" dialog to appear so that the user can open the file as a binary in Outlook.

What can I put into the apache conf or .htaccess rule to make the headers for ICS files work like a binary. Example: A .doc file opens like a binary.

Thanks.

like image 855
Glen Lipka Avatar asked Jan 30 '26 04:01

Glen Lipka


1 Answers

You'd need to add the following line to your .htaccess file:

AddType text/calendar .ics

like image 99
lod3n Avatar answered Feb 01 '26 19:02

lod3n



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!