-
Notifications
You must be signed in to change notification settings - Fork 153
Files app external integration #4662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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, |
There was a problem hiding this comment.
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' %>"> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
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