How do I download a file using QWebView?
-
There are a bunch of attachment files in the page which I'd like to allow the user download. The default behavior if you click upon link which is an attachment file, is don't open anything at all (I expected the downlaod prompt window actually...) so I found I could call setForwardUnsupportedContent(true) so I'll get notyfied when a new download is requested by downloadRequested/unsupportedContent.
My question is, how do I implement such method to download the requested file to local PC, considering it's a page where it must be consider the context of having cookies and such (the user is logged in to see those attachments) so I can't do a plain http request, but pass cookies and everything in the request? I have no code to show yet becaue I still have no idea how do so.
Any help, direction towards something that can help is very appreciated. Thanks in advance. -
Hi
Did you see this page ?
https://stackoverflow.com/questions/16346219/how-to-download-files-from-qwebview