diff options
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r-- | module/web/pyload_app.py | 5 |
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 |