New save-attachment capability

New save-attachment Capability

If your Power-Up connects to a file 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.

For instance, the Dropbox Power-Up allows users to save the attachment to their Dropbox account:

Example Code

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
      }
    }
  }
});