pallets / flask

The Python micro framework for building web applications.

Home Page:https://flask.palletsprojects.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

send_file doesn't work with objects

AxelGarciaTello opened this issue · comments

I had a file in an object of type io.BytesIO(), but when I put this object in a send_file made me the error that the parameter is incorrect.
In the version 2 this work well but in the version 3.0.2 doesn't.

Environment:

  • Python version: 3.10.12
  • Flask version: 3.0.2

I can't reproduce the issue with the information provided. When reporting an issue, be sure to include a minimal reproducible example and the full traceback.