From a4c8e7ede92f08b2baebf4dc1ab27433a107ef98 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Sat, 19 Dec 2020 15:32:46 +0100 Subject: [PATCH] wip --- docker-compose.yaml | 2 +- src/routes/api/tracks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index a5f77fa..1df6295 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,7 +21,7 @@ services: environment: - PORT=3000 - MONGODB_URL=mongodb://mongo/obsTest - - UPLOADS_DIR=/data + - DATA_DIR=/data links: - mongo ports: diff --git a/src/routes/api/tracks.js b/src/routes/api/tracks.js index a63e2e9..ddf0ec2 100644 --- a/src/routes/api/tracks.js +++ b/src/routes/api/tracks.js @@ -368,7 +368,7 @@ router.get( return res.sendStatus(403); } - return res.sendFile(req.track.fullOriginalFilePath) + return res.download(req.track.fullOriginalFilePath) }), );