From a767061bd38c6183eaba313e335205dda99d99d5 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 17 Jul 2026 13:58:10 +0200 Subject: [PATCH] fix: remove manual Content-Type setting for CSV import to ensure proper form data handling --- frontend/src/views/ScheduleView.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/ScheduleView.vue b/frontend/src/views/ScheduleView.vue index 139775d5..62e394f1 100755 --- a/frontend/src/views/ScheduleView.vue +++ b/frontend/src/views/ScheduleView.vue @@ -2206,11 +2206,9 @@ export default { formData.append('clubId', this.currentClub); try { - const response = await apiClient.post('/matches/import', formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }); + // Let the browser add the multipart boundary. Setting Content-Type manually + // drops it and prevents Multer from reading form fields such as clubId. + const response = await apiClient.post('/matches/import', formData); if (response.status < 200 || response.status >= 300) { throw new Error(response.data?.error || 'Failed to import CSV data'); }