exports.func = (req, res) => {
const fpath = res.locals.fpath
res.on('finish', () => {
fs.unlink(fpath, (err) => {
if(err) { throw err }
console.log(`unlink ${fpath}`)
})
}
}
exports.func = (req, res) => {
const fpath = res.locals.fpath
res.on('finish', () => {
fs.unlink(fpath, (err) => {
if(err) { throw err }
console.log(`unlink ${fpath}`)
})
}
}