flaskcode icon indicating copy to clipboard operation
flaskcode copied to clipboard

Unexpected argument in flask send_file() module

Open AminAlam opened this issue 2 years ago • 1 comments

This error raises in Flask2.2.3:

response = send_file(file_path, mimetype='text/plain', cache_timeout=0)
TypeError: send_file() got an unexpected keyword argument 'cache_timeout'

I resolved this error in this pull req

AminAlam avatar Feb 28 '23 14:02 AminAlam

Thanks this works!

CaptAlpha avatar Jun 24 '23 18:06 CaptAlpha