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 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-25 12:11:00 -04:00
parent 613e43114c
commit a5a806e256
2 changed files with 3 additions and 3 deletions

View File

@@ -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];

View File

@@ -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