error submit
This commit is contained in:
parent
efebba8584
commit
f221b86f59
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);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue