From 6ba252eb4f953b15a2abb0a2fdad11663991e58a Mon Sep 17 00:00:00 2001 From: NickEdwards7502 Date: Fri, 10 Jan 2025 03:58:46 +0000 Subject: [PATCH] FIX: Correct staging prefix for file upload on project creation * Sync with sbeacon upstream --- sbeacon | 2 +- .../data-submission-form/data-submission-form.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbeacon b/sbeacon index 5df56d5..6eaff40 160000 --- a/sbeacon +++ b/sbeacon @@ -1 +1 @@ -Subproject commit 5df56d553073c34fa80e00d164b40dbdb3243a48 +Subproject commit 6eaff40d91c737f14169971027f8d2e9ec56271c diff --git a/webgui/webapp/src/app/pages/portal-page/dportal-page/admin-section/data-submission-form/data-submission-form.component.ts b/webgui/webapp/src/app/pages/portal-page/dportal-page/admin-section/data-submission-form/data-submission-form.component.ts index 16f85e1..65c5db2 100644 --- a/webgui/webapp/src/app/pages/portal-page/dportal-page/admin-section/data-submission-form/data-submission-form.component.ts +++ b/webgui/webapp/src/app/pages/portal-page/dportal-page/admin-section/data-submission-form/data-submission-form.component.ts @@ -63,7 +63,7 @@ export class DataSubmissionFormComponent { async uploadFile(path: string, file: File): Promise { this.fileProgress.set(file.name, 0); try { - await Storage.put(`/staging/projects/${path}/${file.name}`, file, { + await Storage.put(`staging/projects/${path}/${file.name}`, file, { customPrefix: { public: '' }, progressCallback: (progress: { loaded: number; total: number }) => { this.fileProgress.set(file.name, progress.loaded);