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:
@@ -185,7 +185,7 @@ async function handle_input_upload_files({
|
|||||||
|
|
||||||
let params = null;
|
let params = null;
|
||||||
|
|
||||||
let endpoint = '/hosted_file/upload_files';
|
let endpoint = '/v3/action/hosted_file/upload';
|
||||||
|
|
||||||
console.log(form_data);
|
console.log(form_data);
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ async function handle_input_upload_files({
|
|||||||
})
|
})
|
||||||
.then(async function (result) {
|
.then(async function (result) {
|
||||||
// WARNING!!!! ONLY ONE FILE IS EXPECTED TO BE UPLOADED AT A TIME!!!
|
// 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;
|
let x = 0;
|
||||||
console.log(result[x]);
|
console.log(result[x]);
|
||||||
let hosted_file_obj = result[x];
|
let hosted_file_obj = result[x];
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ async function handle_input_upload_files({
|
|||||||
ae_promises.upload__hosted_file_obj = api
|
ae_promises.upload__hosted_file_obj = api
|
||||||
.post_object({
|
.post_object({
|
||||||
api_cfg: $ae_api,
|
api_cfg: $ae_api,
|
||||||
endpoint: '/hosted_file/upload_files',
|
endpoint: '/v3/action/hosted_file/upload',
|
||||||
form_data: form_data,
|
form_data: form_data,
|
||||||
task_id: task_id,
|
task_id: task_id,
|
||||||
log_lvl: log_lvl
|
log_lvl: log_lvl
|
||||||
|
|||||||
Reference in New Issue
Block a user