Skip to content

Commit

Permalink
derive gcs filename
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewplummer committed Dec 10, 2024
1 parent fa780cc commit 5444938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/api/src/utils/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5444938

Please sign in to comment.