error submit

This commit is contained in:
clement callaert 2023-11-05 22:51:38 +01:00
parent efebba8584
commit f221b86f59
6 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

View file

@ -361,4 +361,4 @@ strong {
transform: scale(0.75); transform: scale(0.75);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
} }
} }

View file

@ -83,8 +83,8 @@ router.post('/submitResolution/:postId', upload.single('image'), async function
prenom: prenom, prenom: prenom,
imagePath: path imagePath: path
} }
console.log("here5")
const result = await db.getDb().collection('res').insertOne(resolution); await db.getDb().collection('res').insertOne(resolution);
return res.redirect('/hotLine') return res.redirect('/hotLine')
}) })

View file

@ -10,7 +10,7 @@
<h1> <h1>
soumettre sa résolution soumettre sa résolution
</h1> </h1>
<form method="post" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<div> <div>
<label for="image">Mettre l'image : </label> <label for="image">Mettre l'image : </label>
<input type="file" id="image" name="image"> <input type="file" id="image" name="image">