import os
from flask import Flask
from flask import send_from_directory
app = Flask(__name__)
@app.route('/<path:filename>', methods=['GET', 'POST'])
def download(filename):
uploads = os.path.join(app.root_path)
return send_from_directory(directory=uploads, filename=filename)