Skip to content

Commit

Permalink
Change the forwarding after uploading a file in the batch delete cont…
Browse files Browse the repository at this point in the history
…roller to status 303.
  • Loading branch information
wolfganggreschus committed Jan 31, 2025
1 parent 02a227b commit f88287d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/batch-deletion.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ router.post('/create-batch-deletion-file', upload.single('file'), (req, res, nex
if (req.file) {
console.log('Datei empfangen:', req.file.originalname);
const fileBuffer = req.file.buffer;
// Send the file to the API "schulcloud-server"
res.redirect('/batch-deletion/');
// TODO: Send the file to the API "schulcloud-server"
res.redirect(303, '/batch-deletion/');
} else {
res.status(400).send('Keine Datei hochgeladen');
}
Expand Down

0 comments on commit f88287d

Please sign in to comment.