首页 > 解决方案 > Outlook 的 Office 加载项 - 附加 .msg 文件会导致文件大小为 0

问题描述

我们正在为 Outlook 开发 Office 加载项。

目前,我正在使用以下方法在撰写电子邮件时获取附件的大小。

如果我使用以下过程附加一个 msg 文件,我会得到一个附件大小为 0 的对象。

getAttachmentsAsync(选项,回调)

程序

  1. [新电子邮件] > [附加文件] > [浏览这台电脑]
  2. 选择味精文件。
  3. 调用 getAttachmentsAsync()。

在上述过程中附加 test.msg 时检索到的对象示例。

{id: "0", name: "test", size: 0, attachmentType: "item", isInline: false}

请注意,这只发生在 PC 版本的 Outlook 中,不会发生在 Outlook 网页版中。

这是一个错误吗?

标签: office-jsoutlook-addinoutlook-web-addins

解决方案


Thank you for reporting this issue. After careful consideration, our team has decided to not fix this issue in the short term. We recommend you to upvote or create a new user-voice item, this will give us visibility of the commonality of it and will help with our prioritization. If we end up working on this issue we will re-activate as needed.


推荐阅读