Allowing users to download CSV on click

Update: Using the flask server route, allows me to download a csv file.

@app.server.route('/dash/urlToDownload') 
def download_csv():
    return send_file('output/downloadFile.csv',
                     mimetype='text/csv',
                     attachment_filename='downloadFile.csv',
                     as_attachment=True)
4 Likes