Fix missing variable in the download controller

This commit is contained in:
Paul van Tilburg 2012-02-14 00:21:31 +01:00
parent 3d0af7ed67
commit d75b705c00
1 changed files with 1 additions and 0 deletions

1
app.js
View File

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