We can now download files remotely!

This commit is contained in:
Scott Idem
2024-10-09 20:47:46 -04:00
parent 6694ec92c7
commit 79bc148e85
4 changed files with 51 additions and 3 deletions

View File

@@ -388,6 +388,13 @@ async function handle_open_file() {
});
// window.postMessage({ type: 'download_event_file', event_file_id: event_file_obj.event_file_id_random, filename: event_file_obj.filename, auto_download: true }, '*');
if ($events_loc.launcher.controller == 'local_push') {
console.log(`Local Push Controller Command: ae_download:hosted_file=${event_file_obj.hosted_file_id_random}`);
$events_sess.launcher.controller_cmd = `ae_download:hosted_file=${event_file_obj.hosted_file_id_random}:${new_filename}:${event_file_obj.extension}`;
$events_sess.launcher.controller_trigger_send = true;
// tick();
}
}}
class="
btn btn-sm md:btn-md lg:btn-lg