Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

cant "download" file dont know if its easily possible #19

Open
M4rcellxD opened this issue Apr 29, 2019 · 0 comments
Open

cant "download" file dont know if its easily possible #19

M4rcellxD opened this issue Apr 29, 2019 · 0 comments

Comments

@M4rcellxD
Copy link

I am using flask response for downloading a file within the normal browser

like this:

response = make_response('test')
response.headers["Cache-Control"] = "must-revalidate"
response.headers["Pragma"] = "must-revalidate"
response.headers["Content-type"] = "application/txt"
response.headers["Content-Disposition"] = "attachment; filename="test"
return response

and nothing happend and i dont know how to fix it.

Have found this but i don't know how to deal with it.

https://doc.qt.io/qt-5/qwebengineprofile.html#downloadRequested
https://code.qt.io/cgit/qt/qtwebengine.git/tree/src/webenginewidgets/api/qwebengineprofile.h#n106

@M4rcellxD M4rcellxD changed the title cant "download" file cant "download" file dont know if its easily possible Apr 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant