Inconsistent behaviors' in Teams and SharePoint for File Handler

Nikhil Rane 191 Reputation points
2023-04-13T10:38:55.0033333+00:00

Sharepoint : Custom file handlers open action is invoked after clicking on the file name in SharePoint Document Library. Preview action is invoked after clicking on the preview button.

Teams : Expected Behaviour :

  1. After clicking on the file in Teams files tab file should be open. If file handler exists for open file action should be performed. Actual Behaviour :
  2. After clicking on the file in Teams files tab file open in preview mode. Default teams file handler preview is invoked even if custom file handler for preview action is deployed. Steps to Reproduce :
  3. Create a File handler for the preview action of customformat files using this.
  4. Create new teams.
  5. Create a new channel.
  6. Add .customextension files in a channel.
    1. click on any .customformat file. Below output will be shown by default preview handler as customformat is not supported by teams default file handler.User's image
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Teams | Microsoft Teams for business | Other

Your answer

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