flask send_file not working with tar.gz files flask send_file not working with tar.gz files flask flask

flask send_file not working with tar.gz files


you have to use,

return send_file('/path/to/my_folder.tar.gz',as_attachment=True, attachment_filename='my_name.tar.gz, cache_timeout=0')