remove "path:" from the route
This commit is contained in:
		
							parent
							
								
									00324f74fe
								
							
						
					
					
						commit
						febe7bcac0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue