From 5444938d35eef68bc3d76555237a743df6cfd559 Mon Sep 17 00:00:00 2001 From: Andrew Plummer Date: Mon, 9 Dec 2024 19:23:27 -0500 Subject: [PATCH] derive gcs filename --- services/api/src/utils/uploads.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/api/src/utils/uploads.js b/services/api/src/utils/uploads.js index 3c38a0d2..459bf45d 100644 --- a/services/api/src/utils/uploads.js +++ b/services/api/src/utils/uploads.js @@ -75,8 +75,9 @@ async function uploadLocal(file, upload) { } async function uploadGcs(file, upload) { - const { filename, filepath, buffer } = file; + const { filepath, buffer } = file; + const filename = path.basename(filepath); const destination = getUploadFilename(upload); const gcsFile = bucket.file(destination);