Outlook Add-in file download

时光怂恿深爱的人放手 提交于 2021-01-27 06:56:01

问题


What I'm trying to do

Download a file from an Office Outlook add-in inside Outlook application in MacOS X "El Capitan" ( not the web portal )

How I tried to do it

I have tried with:

  • Blob
  • data URL
  • btoa - atob
  • A tag with download variable
  • internal window.open ( in a allowed domain )
  • Applying Office Dev tutorial Office-Add-in-JavaScript-FileDownload ( with a modification to make it work in outlook due to OfficeExtension class)

But result is always the same: or it shows the file (i.e. images or text ), or Outlook prompts a mesage about that he cannot open a blob.

The only way that works is by opening an external browser window but I want to avoid it for UX and security reasons.

Note that it works perfectly in the web portal of Outlook.

Question

Does anyone knows when this will be allowed in Outlook (as it seems it works in Word, due to the mentionned tutorial ) or if it can be done?

Thanks for the help

来源:https://stackoverflow.com/questions/44101978/outlook-add-in-file-download

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!