Download in emmett 2.6 #519
-
Hi, I have de following code: @app.route("/download/<str:filename>")
async def download(filename):
response.wrap_dbfile(db, filename)
I get html page with:
I have to change the content type? |
Beta Was this translation helpful? Give feedback.
Answered by
gi0baro
Oct 30, 2024
Replies: 1 comment
-
Wrap methods need a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josejachuf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrap methods need a
return
statement, see the upgrade guide https://emmett.sh/docs/2.6.x/upgrading#version-26