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