Is there any SDK support to download files in integrated web app of MS Teams mobile app?

Aaron 20 Reputation points
2023-05-10T06:32:45.9233333+00:00

Background

We integrated a web app in MS Teams mobile app. In some cases, we need to support users to download files, eg. images, PDFs, not only from URL but also blob resources.

The sample have been deployed on https://1434629.playcode.io/

The source code can be reviewed on https://playcode.io/1434629

Actual Behavior

Here is the conclusion of behavior under test:

platform\handler downloadFileV1 downloadFileV2
IOS Open file in app Open file in app
Android Jump to external browser App crashed or no response

On IOS, although users can see the file in app, they have no way to download file into local file system.

Expected Behavior

Download files by an in-app download manager like browser dose that allow users to interact with

Microsoft Teams | Development
{count} votes

Accepted answer
  1. Nivedipa-MSFT 3,646 Reputation points Microsoft External Staff Moderator
    2023-06-07T11:09:28.4633333+00:00

    @Aaron - There is not any direct SDK function available to download files in Teams.
    You can suggest this feature here: Microsoft Teams Community

    As a workaround, you have to first upload file in Teams and then clicking on 3 dots on that file you have to download that file.
    Could you please refer below document and sample:

    1. https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bots-filesv4
    2. https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-file-upload/csharp

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.