remove "path:" from the route

This commit is contained in:
neingeist 2018-11-12 08:22:27 +01:00
parent 00324f74fe
commit febe7bcac0

View file

@ -45,7 +45,7 @@ def download():
return render_template('download.html', form=form) return render_template('download.html', form=form)
@app.route('/download_file/<path:filename>') @app.route('/download_file/<filename>')
def download_file(filename): def download_file(filename):
return send_from_directory(app.config['DATA_DIR'], filename, return send_from_directory(app.config['DATA_DIR'], filename,
as_attachment=True) as_attachment=True)