From aaa86bf51e7de1f18a2f2e03013e31f1333916e3 Mon Sep 17 00:00:00 2001 From: Camila Espinoza <56554983+cami-espinozaq@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:30:01 +0100 Subject: [PATCH] Update prepareAssetUpload.js - logging --- src/backend/prepareAssetUpload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/prepareAssetUpload.js b/src/backend/prepareAssetUpload.js index b43b66aa..9efd1364 100644 --- a/src/backend/prepareAssetUpload.js +++ b/src/backend/prepareAssetUpload.js @@ -10,6 +10,8 @@ const s3 = initS3(customEndpoint) export const handler = async (event) => { const { filename } = JSON.parse(event.body) + console.log("filename for handler", filename) + if (!filename) { return respond.error(400, "Missing request body key 'filename'.") }