简体   繁体   中英

Is there a way to stop uploading an attachment in outlook web add-in?

I'm trying to get an attachment from an outlook mailbox, but I don't want it to be uploaded to microsoft server for security purposes.

I added the extension point in my xml file:

<ExtensionPoint xsi:type="LaunchEvent">
<LaunchEvents>
<LaunchEvent Type="OnMessageAttachmentsChanged" FunctionName="test" />
</LaunchEvents>
<SourceLocation resid="residUILessFunctionFileUrl" />
</ExtensionPoint> But my test function is only called once the file as been uploaded to the server. I was wondering if I could do and event.preventDefault() before the file is uploaded, but the event returned by the launchevent isn't a normal html event.

Here's my test function:

function test(event){
event.preventDefault() //This isn't possible
console.log(event)
}

Currently the feature you requested, is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page . Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM