From b3077e417056f18225957f65419b87de72117fe3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 7 Feb 2016 10:39:37 +0100 Subject: Standard v6 --- models/videos.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models') 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 @@ var dz = require('dezalgo') var fs = require('fs') var mongoose = require('mongoose') + var path = require('path') var logger = require('../helpers/logger') var http = config.get('webserver.https') === true ? 'https' : 'http' var host = config.get('webserver.host') var port = config.get('webserver.port') - var uploadDir = __dirname + '/../' + config.get('storage.uploads') + var uploadDir = path.join(__dirname, '..', config.get('storage.uploads')) // --------------------------------------------------------------------------- -- cgit v1.2.3