7

I've created a configurable tab app and have side-loaded it into Teams. On the content page, I want to allow the user to download a file. Simply linking to the file doesn't work. When the user clicks the link, the content iframe redirects and goes blank. I've tested this in the web app version of Teams at teams.microsoft.com and it works fine. The file gets downloaded as you would expect.

If it makes any difference, the content page is hosted in SharePoint on a modern page using SPFx.

Derek Smith
  • 853
  • 1
  • 7
  • 14
  • 1
    We're looking into it. Thanks for reporting the problem. – Bill Bliss - MSFT Jan 08 '18 at 17:35
  • Derek - can you post the HTML that's invoking the download? In particular we're wondering whether it has a "target=" attribute. – Bill Bliss - MSFT Jan 08 '18 at 20:20
  • @BillBliss-MSFT Thanks for looking into this. `target` attribute is not being used. I'm using the React version of SPFx and so using the Link component with the href attribute like this: `{item.name}` which resolves to `Test Document 1.docx` – Derek Smith Jan 08 '18 at 21:40
  • @BillBliss-MSFT any update or ETA for a fix on this? Thanks – Derek Smith Jan 09 '18 at 20:12
  • 1
    We're still investigating it (your HTML is helpful). In your case there are two problems: one, that your tab navigates to a blank page, and two, that the download doesn't occur. Can you check your "downloads" directory and see if the download indeed happened? There's a UI problem that nothing shows the download is occurring, but in our testing it actually does. We haven't seen the blank page problem. – Bill Bliss - MSFT Jan 13 '18 at 00:13
  • Hi, I was experiencing something similar linking sts files & handling custom protocols. I believe it has something to do with electron & how the teams app was created - Same thing using it on chrome. https://jaxenter.com/critical-electron-vulnerability-windows-apps-140870.html – Paddymac Feb 07 '19 at 14:30
  • This is still not fixed. – Ashutosh Mar 20 '19 at 01:02
  • Apparently not fixed yet. Pressing the link and page iframe goes blank in web version (in Edge) or ignored in Windows client and web client under Firefox. @BillBliss-MSFT do you have any news regarding the issue? – user1455836 May 29 '19 at 13:46
  • It turned out to be CSP problem. Tab page has to return proper headers if I understood correctly. – user1455836 May 31 '19 at 13:18

0 Answers0