remove "path:" from the route

stable
neingeist 6 years ago
parent 00324f74fe
commit febe7bcac0

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

Loading…
Cancel
Save