From 9608b6c4a57e7aa37e7bbbc999a36d74bc7201f2 Mon Sep 17 00:00:00 2001 From: jeremygan2021 Date: Sun, 22 Mar 2026 23:51:01 +0800 Subject: [PATCH] debug1 --- frontend/src/components/competition/ProjectSubmission.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/competition/ProjectSubmission.jsx b/frontend/src/components/competition/ProjectSubmission.jsx index 8ac9376..ee8da4e 100644 --- a/frontend/src/components/competition/ProjectSubmission.jsx +++ b/frontend/src/components/competition/ProjectSubmission.jsx @@ -240,8 +240,10 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess } console.log('Cover image selected:', file.name, 'activeProjectId:', activeProjectId); const doUpload = (projectId) => { + console.log('Uploading cover for project:', projectId); const formData = new FormData(); formData.append('file', file); + formData.append('project', projectId); uploadProjectFile(formData) .then(res => {