Skip to content

Download files using Teams SDK #10334

@Wajeed-msft

Description

@Wajeed-msft

Copied bug from: OfficeDev/microsoft-365-agents-toolkit#10813

Details from original post:
Is your feature request related to a problem? Please describe.
File downloads are hard in Teams apps because of the restrictions in embedded web browsers/Electron apps. There are numerous security and cross browser quirks to consider.

Describe the solution you'd like
I wish that there was methods in the SDK for starting a user friendly file download experience in the Teams apps. Some possible parameters are:

  • A blob. Imagine a image editor in Teams that allows you to download the result from a canvas element.
  • A URL to an already existing file in SharePoint Online.
  • A URL to a file publicly available on the Internet.

Additional context
Saving blobs using FileSaver.js used to work in old Teams app, but no longer works correctly in new Teams. The first file will be downloaded, but subsequent downloads are blocked.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

bugteams-developer-supportQuestion related to extensibility (Bot, ME, Tab) would be marked under this label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions