diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/videos.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/videos.js b/models/videos.js index 6ea628373..ea1823e27 100644 --- a/models/videos.js +++ b/models/videos.js | |||
@@ -6,13 +6,14 @@ | |||
6 | var dz = require('dezalgo') | 6 | var dz = require('dezalgo') |
7 | var fs = require('fs') | 7 | var fs = require('fs') |
8 | var mongoose = require('mongoose') | 8 | var mongoose = require('mongoose') |
9 | var path = require('path') | ||
9 | 10 | ||
10 | var logger = require('../helpers/logger') | 11 | var logger = require('../helpers/logger') |
11 | 12 | ||
12 | var http = config.get('webserver.https') === true ? 'https' : 'http' | 13 | var http = config.get('webserver.https') === true ? 'https' : 'http' |
13 | var host = config.get('webserver.host') | 14 | var host = config.get('webserver.host') |
14 | var port = config.get('webserver.port') | 15 | var port = config.get('webserver.port') |
15 | var uploadDir = __dirname + '/../' + config.get('storage.uploads') | 16 | var uploadDir = path.join(__dirname, '..', config.get('storage.uploads')) |
16 | 17 | ||
17 | // --------------------------------------------------------------------------- | 18 | // --------------------------------------------------------------------------- |
18 | 19 | ||