Skip to content

Instantly share code, notes, and snippets.

View rahulCSENITTE's full-sized avatar

rahulCSENITTE

View GitHub Profile
@rahulCSENITTE
rahulCSENITTE / report
Created August 16, 2020 09:34
report -- digilab
router.post('/upreport/:ReId', multer.single('reportfile'), function (req, res, next) {
if (!req.file) {
req.flash('error', "Report file not selected")
res.redirect('/hospital/report')
} else {
db.collection("request").doc(req.params.ReId)
.get()
.then((doc) => {
var mailOptions = {
from: '4nm17cs141@gmail.com',