From a5a806e256aef503f8c0c1f53a336e8a316c26d3 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 25 Mar 2026 12:11:00 -0400 Subject: [PATCH] fix(upload): update hosted file upload endpoint to V3 action path The legacy /hosted_file/upload_files router was decommissioned (commented out in registry.py). Both upload components now point to the active V3 endpoint at /v3/action/hosted_file/upload. Response shape is identical so no consumer-side changes needed. Co-Authored-By: Claude Sonnet 4.6 --- src/lib/ae_core/ae_comp__hosted_files_upload.svelte | 4 ++-- src/routes/events/ae_comp__event_files_upload.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ae_core/ae_comp__hosted_files_upload.svelte b/src/lib/ae_core/ae_comp__hosted_files_upload.svelte index 294f00eb..25dbe64b 100644 --- a/src/lib/ae_core/ae_comp__hosted_files_upload.svelte +++ b/src/lib/ae_core/ae_comp__hosted_files_upload.svelte @@ -185,7 +185,7 @@ async function handle_input_upload_files({ let params = null; - let endpoint = '/hosted_file/upload_files'; + let endpoint = '/v3/action/hosted_file/upload'; console.log(form_data); @@ -206,7 +206,7 @@ async function handle_input_upload_files({ }) .then(async function (result) { // WARNING!!!! ONLY ONE FILE IS EXPECTED TO BE UPLOADED AT A TIME!!! - // NOTE: The /hosted_file/upload_files endpoint will always return a list of successful files uploaded. In this case we are only uploading one file and expecting a list of one item. + // NOTE: The upload endpoint always returns a list of successfully uploaded files. In this case we are only uploading one file and expecting a list of one item. let x = 0; console.log(result[x]); let hosted_file_obj = result[x]; diff --git a/src/routes/events/ae_comp__event_files_upload.svelte b/src/routes/events/ae_comp__event_files_upload.svelte index 514b8c44..a5849607 100644 --- a/src/routes/events/ae_comp__event_files_upload.svelte +++ b/src/routes/events/ae_comp__event_files_upload.svelte @@ -151,7 +151,7 @@ async function handle_input_upload_files({ ae_promises.upload__hosted_file_obj = api .post_object({ api_cfg: $ae_api, - endpoint: '/hosted_file/upload_files', + endpoint: '/v3/action/hosted_file/upload', form_data: form_data, task_id: task_id, log_lvl: log_lvl