-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Add download link support #349
Comments
@lemarier, can you explain why this is a good first issue? I'm struggling to figure how to approach it. |
It's been tagged as a But I do agree it's quite complex, especially on macOS. There are some references for |
Looks like webkitgtk has API for it, but the rust crate doesn't provide any method other than constructor. |
Unfortunately download not implemented in tauri yet: tauri-apps/wry#349
@wusyong - think we'd have time to pick this back up again? |
I believe this is handled by #530 @nothingismagick |
With #530 merged I believe this issue has been addressed completely. Notably, it includes examples for handling "normal" downloads and blob downloads, which happen to be different enough to require separate solutions. |
Nice! Let's try to add this to Tauri v1.3. |
Describe the bug
Generate an
a
tag with thedownload
attribute set and thehref
attribute pointing to ablob:
URL. For example the following.(example source)
Clicking such a link in any modern browser will initiate download of the linked resource. In Tauri, nothing happens.
To Reproduce
a
tag with thedownload
attribute set and thehref
attribute pointing to ablob:
URL.Expected behavior
Download of the linked resource should initiate.
Platform and Versions (required):
Additional context
If a valid navigable URL (eg
https://duckduckgo.com/
) is used as thehref
of ana
tag with thedownload
attribute set, clicking the resultant link navigates to the given URL instead of downloading the content there.The text was updated successfully, but these errors were encountered: