Capabilities
Client Library
UI Functions

Rate this page:

save-attachment

If your Power-Up connects to a storage platform, you can use this capability to show users that native attachments on Trello cards can be saved to your platform for better collaboration.

The "Save to..." button will appear on the "Edit" popup once the attachment is added to the card.

Example Code

1
2
3
4
5
6
7
8
9
10
window.TrelloPowerUp.initialize({
  "save-attachment": function (t, options) {
    return {
      callback: function (t, opts) {
        // code to save the attachment to the platform
        // information about the attachment can be found at options or opts
      },
    };
  },
});

Rate this page: