Update DockerCompose.template, Dockerfile, Upload.js, and upload.ejs files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-14 15:57:58 +02:00
parent 4e2e085a63
commit 1006dcb1f5
5 changed files with 65 additions and 32 deletions

View File

@@ -84,7 +84,7 @@ router.post('/', authMiddleware, async (req, res) => {
await fs.promises.writeFile(path.join(__dirname, '../../../data', 'file_info.json'), JSON.stringify(data, null, 2));
}
res.redirect('/dpanel/dashboard');
res.status(200).send({ message: 'Votre fichier a été téléchargé avec succès.' });
});
} catch (error) {
console.error(error);