Update DockerCompose.template, Dockerfile, Upload.js, and upload.ejs files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user