diff options
Diffstat (limited to 'pyload/webui/app/json.py')
-rw-r--r-- | pyload/webui/app/json.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/webui/app/json.py b/pyload/webui/app/json.py index 400eba624..24952cc34 100644 --- a/pyload/webui/app/json.py +++ b/pyload/webui/app/json.py @@ -2,11 +2,10 @@ from __future__ import with_statement +import os import shutil import traceback -from os.path import join - from bottle import route, request, HTTPError from pyload.utils import decode, formatSize @@ -166,7 +165,7 @@ def add_package(): if not name or name == "New Package": name = f.name - fpath = join(PYLOAD.getConfigValue("general", "download_folder"), "tmp_" + f.filename) + fpath = os.path.join(PYLOAD.getConfigValue("general", "download_folder"), "tmp_" + f.filename) with open(fpath, 'wb') as destination: shutil.copyfileobj(f.file, destination) links.insert(0, fpath) |