从azure存储下载时,android vcs文件未打开
我有一个从azure存储下载时,android vcs文件未打开,android,azure-storage,icalendar,Android,Azure Storage,Icalendar,我有一个php文件,其中包含vCalendar格式 以下是它的构建方式: <?php header('Content-Type: text/x-vCalendar'); header('Content-Disposition: attachment; filename=event.php'); ?> BEGIN:VCALENDAR // some required text is here for the calendar to display the appointment END
php
文件,其中包含vCalendar
格式
以下是它的构建方式:
<?php
header('Content-Type: text/x-vCalendar');
header('Content-Disposition: attachment; filename=event.php');
?>
BEGIN:VCALENDAR
// some required text is here for the calendar to display the appointment
END:VCALENDAR
开始:VCALENDAR
//此处是日历显示约会所需的一些文本
完:VCALENDAR
问题在于:
当我从Azure网站的文件夹中下载文件(到Android手机上)时,它就工作了!
当我在azure存储中保存同一个文件并下载它时,它就不工作了
尝试了所有不同的MIME类型,但仍然没有成功。有人有想法吗?内容类型:文本/日历
内容处置:附件;文件名=事件。ics您需要更改标题类型 标题(“内容类型:text/x-vCalendar”);
标题(“内容处置:附件;文件名=myevent.vcs”) 没有。它仍然只下载文件,但Android无法读取。这是越来越陌生。。。我根本无法解释这种行为。如果你可以发布该文件,或者链接到该文件?