-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download file #17
Comments
I am experiencing a similar problem. I would like to download an allow_external_content: True
content_handlers:
application/octet-stream: ??? |
I haven't had my head in Qt for a while, but I'm assuming one would need to implement a save dialog and file saving of some sort. I took a quick look over the docs and didn't see anything obvious built in to QtWebEngine. Given that ADMBrowser is aimed at kiosk / locked down usage, I'd be interested in hearing a use case for downloading and saving files. That's one of the many things I created this browser to not have, though if there is an arguable use case I would accept a PR as long as it was disabled by default. |
Here is a use case: Here is another one: |
That makes sense. This is a feature that would definitely be disabled by default, and one would want to be able to secure it to make sure the download dialog doesn't become a back door to browsing the system. |
Hello, congratulations for the well structured and ordered code.
I ask, how can I download a file?
my call is:
<a href='Controller/name_file/date' targhet='_blank' /a>
the called controller processes the data and responds with a octed-stram header.
in my case I use codeigniter 4
return $ this-> response-> download ($ file, null) -> setFileName ($ fileName);
the browser sees the request twice.
header octed-stream
i set admbrowser.yaml
and the file is downloaded.
But the window new tab stays open in 'abaut: blank'.
How should I set the download header?
Or
How can I close the window new tab when the download is finished?
Thank you
just for information python-yaml is no longer maintained you have to use pyYAML.
To change in requirements.
The text was updated successfully, but these errors were encountered: