support redirectTo param on file upload
This commit is contained in:
parent
c105c78f9b
commit
4a3ebc1ba6
@ -83,7 +83,7 @@ class File extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await group.save()
|
await group.save()
|
||||||
return res.redirect('/')
|
return res.redirect(req.body.redirectTo ? req.body.redirectTo : '/')
|
||||||
}
|
}
|
||||||
|
|
||||||
async download(req, res) {
|
async download(req, res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user