support redirectTo param on file upload

This commit is contained in:
garrettmills 2020-02-10 23:55:01 -06:00
parent c105c78f9b
commit 4a3ebc1ba6

View File

@ -83,7 +83,7 @@ class File extends Controller {
}
await group.save()
return res.redirect('/')
return res.redirect(req.body.redirectTo ? req.body.redirectTo : '/')
}
async download(req, res) {