error submit
This commit is contained in:
parent
efebba8584
commit
f221b86f59
6 changed files with 4 additions and 4 deletions
BIN
images/1699217263625-15198.jpg
Normal file
BIN
images/1699217263625-15198.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 MiB |
BIN
images/1699217651279-logoPermantEpaule.JPG
Normal file
BIN
images/1699217651279-logoPermantEpaule.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 186 KiB |
BIN
images/1699220771581-logoPermantEpaule.JPG
Normal file
BIN
images/1699220771581-logoPermantEpaule.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 186 KiB |
|
@ -361,4 +361,4 @@ strong {
|
|||
transform: scale(0.75);
|
||||
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,8 +83,8 @@ router.post('/submitResolution/:postId', upload.single('image'), async function
|
|||
prenom: prenom,
|
||||
imagePath: path
|
||||
}
|
||||
|
||||
const result = await db.getDb().collection('res').insertOne(resolution);
|
||||
console.log("here5")
|
||||
await db.getDb().collection('res').insertOne(resolution);
|
||||
return res.redirect('/hotLine')
|
||||
})
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<h1>
|
||||
soumettre sa résolution
|
||||
</h1>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<div>
|
||||
<label for="image">Mettre l'image : </label>
|
||||
<input type="file" id="image" name="image">
|
||||
|
|
Loading…
Reference in a new issue