Fix missing variable in the download controller
This commit is contained in:
parent
3d0af7ed67
commit
d75b705c00
1
app.js
1
app.js
|
@ -204,6 +204,7 @@ app.get('/events', function(req, res) {
|
|||
// that they are downloaded by the client.
|
||||
app.get('/download/:id', function(req, res) {
|
||||
var drag_id = req.params.id;
|
||||
var drag = draggables[drag_id];
|
||||
console.log("Provide download for draggable " + drag_id);
|
||||
res.download(__dirname + "/public/upload/" + drag.name);
|
||||
});
|
||||
|
|
Reference in New Issue