Forum Discussion
Custom App - download of multiple files not working in Teams 2.0 desktop app
Hello,
we have a working custom app which users can use to navigate files in a storage solution. It worked perfectly in the old Teams, however since the "New Teams" was published we got a problem regarding downloading files. Downloading a single file is working as intended, however downloading multiple files with one single click runs into nothing. The download is not started and our client-code also doesn't run into any error - it seems like it works as intended even while debugging and stepping over each line of code. However, the download doesn't get started.
It is working in the web version of Teams 2.0 if the user accepts the pop-up which asks if multiple downloads should be allowed (this is a one-time thing and is prompted by the browser). Therefore, our guess is that the Teams 2.0 desktop client would need to prompt for this security setting too, but doesn't and therefore "blocks" all downloads.
Our download is realized through creating an iframe, setting its source to the download url and appending it to the document body. We also tried to use this npm package, but it didn't help with our problem: https://www.npmjs.com/package/file-saver
Hope you can help us.
Best Regards
Patrick
- Prasad_Das-MSFT
Microsoft
pFritsch - Could you please provide any sample code repo or document you followed, so that we can repro this at our end? If you have the app deployed, please do share the manifest, it would be super helpful. Thanks!
- pFritschCopper Contributor
Prasad_Das-MSFT We have created a minimal example for you to test via the VSCode Microsoft Teams Toolkit. It works in the browser as the popup for multiple downloads appear, but just like our real app it fails when hosted in the desktop client.
You can check it out here: https://github.com/corner4-Information-Technology-GmbH/teams-tab-example
- Prasad_Das-MSFT
Microsoft
pFritsch - Thanks for sharing this. We will test this and will get back to you.