This commit is contained in:
Daniela Arcese 2017-06-23 15:17:47 -04:00
parent b673fad703
commit aa8c1afa9d
5 changed files with 44 additions and 47 deletions

View file

@ -60,11 +60,12 @@ app.get('/file/:id', (req, res) => {
name: filename,
filesize: bytes(contentLength),
fileId: id
})
}).catch(() => {
});
})
.catch(() => {
console.log('error retrieving id ' + id);
});
})
});
});
app.get('/download/:id', (req, res) => {