Skip to content

Conversation

abujeda
Copy link
Contributor

@abujeda abujeda commented Oct 7, 2025

Adds a configurable button to the files app to submit a post request to a URL with the selected files metadata.
This is to leverage the Files App functionality in the dashboard with other applications deployed as passenger apps.

The integration relies on a passthrough request parameter, files_select_target_token, which is used to maintain context between the two systems during a transaction.

fixes: #4656

@abujeda
Copy link
Contributor Author

abujeda commented Oct 7, 2025

Sample config:

files_select_target:
  endpoint: /pun/sys/loop/connect
  label: "Send to Loop"
  title: "Send the selected files to the OnDemand Loop application for upload"
  icon: "fas://paper-plane"

});

return {
token: token,
Copy link
Contributor Author

@abujeda abujeda Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token is used as a passthrough parameter to identify and validate the transaction.

@@ -0,0 +1,8 @@
<span data-bs-toggle="tooltip" title="<%= @user_configuration.files_select_target[:title] || 'Send selected files metadata to the external application' %>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely respond to internationalization.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Awaiting Review

Development

Successfully merging this pull request may close these issues.

Dashboard Files App - Add support to integrate with passenger apps

3 participants