Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dlfile = save_doc(newdoc,filetype,companyname,doctype,sowNum)
- filename = dlfile.replace('SOWoutput\\', '')
- @after_this_request
- def cleanup(response):
- os.remove(dlfile)
- return response
- return send_file(dlfile, attachment_filename=filename, as_attachment=True)
Add Comment
Please, Sign In to add comment