upload tweak

This commit is contained in:
Paul Sori 2018-09-09 01:06:09 -04:00
parent 2ee6bfab73
commit d619823352

View File

@ -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 });