Skip to content
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

feat(android): update WebView to support <a download> and camera/gallery picker for input fields #14167

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Jan 4, 2025

Features:

  • <a href="" download> support
  • show a camera/gallery picker for accept="image/*" input fields
var win = Ti.UI.createWindow({});

var webview = Ti.UI.createWebView({
	html: '<a href="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" download>test</a><br/><input type="file" id="picture" name="picture" accept="image/*"  />'
})
webview.addEventListener("download", function(e) {
	alert("Download started: " + e.url)
})
win.add(webview);
win.open();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant