mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
upload tweak
This commit is contained in:
parent
2ee6bfab73
commit
d619823352
@ -14,6 +14,11 @@ exports.setup = function(mstream, program) {
|
||||
return res.status(500).json({ error: 'No Location Provided' });
|
||||
}
|
||||
const pathInfo = program.getVPathInfo(req.headers['data-location']);
|
||||
if (!pathInfo.fullPath) {
|
||||
return res.status(500).json({ error: 'Location could not be parsed' });
|
||||
}
|
||||
|
||||
// TODO: Check if path exits, if not make the path
|
||||
|
||||
const busboy = new Busboy({ headers: req.headers });
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user