Browse Source

error submit

main
clement callaert 2 years ago
parent
commit
f221b86f59
  1. BIN
      images/1699217263625-15198.jpg
  2. BIN
      images/1699217651279-logoPermantEpaule.JPG
  3. BIN
      images/1699220771581-logoPermantEpaule.JPG
  4. 2
      public/css/base.css
  5. 4
      routes/posts.js
  6. 2
      views/hotLine.ejs

BIN
images/1699217263625-15198.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
images/1699217651279-logoPermantEpaule.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

BIN
images/1699220771581-logoPermantEpaule.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

2
public/css/base.css

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

4
routes/posts.js

@ -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')
})

2
views/hotLine.ejs

@ -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…
Cancel
Save