summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-28 12:37:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-28 12:37:42 +0100
commit7c1309ea483b21cb2f97a509b61cb3363de8edb8 (patch)
tree1fe9a481aa7bac344b331519f954e1c7dbe2d283 /module/web/pyload_app.py
parentworking reset button for config (diff)
downloadpyload-7c1309ea483b21cb2f97a509b61cb3363de8edb8.tar.xz
client side settings save, working dl button on dashboard
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 0c3af103f..45564ed08 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -163,3 +163,8 @@ def settings(api):
def admin(api):
return render_to_response("admin.html", proc=[pre_processor])
+@route("/download/:fid")
+@login_required('Download')
+def download(fid, api):
+ path, name = api.getFilePath(fid)
+ return static_file(name, path, download=True) \ No newline at end of file