[英]Is there a way to stop uploading an attachment in outlook web add-in?
我正在嘗試從 outlook 郵箱獲取附件,但出於安全考慮,我不想將其上傳到 Microsoft 服務器。
我在我的 xml 文件中添加了擴展點:
<ExtensionPoint xsi:type="LaunchEvent">
<LaunchEvents>
<LaunchEvent Type="OnMessageAttachmentsChanged" FunctionName="test" />
</LaunchEvents>
<SourceLocation resid="residUILessFunctionFileUrl" />
</ExtensionPoint>
但我的測試 function 僅在文件上傳到服務器后調用。 我想知道我是否可以在上傳文件之前執行 event.preventDefault(),但 launchevent 返回的事件不是正常的 html 事件。
這是我的測試 function:
function test(event){
event.preventDefault() //This isn't possible
console.log(event)
}
目前,您請求的功能不是產品的一部分。 我們在技術社區頁面上跟蹤 Outlook 加載項功能請求。 請在那里提交您的請求並選擇合適的標簽。 當我們通過我們的計划流程 go 時,我們會考慮技術社區的功能請求。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.