Monthly Archives: July 2016

Flask+AngularJS Http Post Download file

Download csv file Server Side: @userprogressreport.route(‘/filedownload’, methods=[‘POST’]) def filedownload(): csv = “”””REVIEW_DATE”,”AUTHOR”,”ISBN”,”DISCOUNTED_PRICE” “1985/01/21″,”Douglas Adams”,0345391802,5.95 “1990/01/12″,”Douglas Hofstadter”,0465026567,9.95 “1998/07/15”,”Timothy “”The Parser”” Campbell”,0968411304,18.99 “1999/12/03″,”Richard Friedman”,0060630353,5.95 “2004/10/04″,”Randel Helms”,0879755725,4.50″”” file_name = “a.csv” response = make_response(csv) # This is the key: Set the right header for … Continue reading

Posted in Uncategorized | Leave a comment