Can not use input type = “file” in webview. (Android)
See original GitHub issueCan not use input type = “file” in webview. (Android) The upload button does not respond.
Is there a solution?
Packages: expo: 30.0.0 react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz
Steps to Reproduce
import React, { Component } from 'react';
import { WebView } from 'react-native';
export default class App extends Component {
get html() {
return '<!DOCTYPE html>\
<html lang="en">\
<head>\
<meta charset="UTF-8">\
<meta name="viewport" content="width=device-width, initial-scale=1.0">\
<meta http-equiv="X-UA-Compatible" content="ie=edge">\
<title>Document</title>\
</head>\
<body>\
<input type="file"/>\
</body>\
</html>'
}
render() {
return (
<WebView style={{margin: 40}} source={{html: this.html}}/>
);
}
}
Reproducible Demo Snack: https://snack.expo.io/BJSrAK2yM
Expected Behavior Image upload in webview.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
HTML input type 'file' is not working on webview in android. Is ...
This is my android code which load html file for browse file and upload on server. runOnUiThread(new Runnable() { @Override public void run()...
Read more >troubleshooting-input-type-file-not-working-in-android - GitHub
Using <input type="file"> doesn't work on some Android devices. In most of the cases, when the Choose File button is tapped there is...
Read more >WebView File Upload Button Not Working Android Studio 2020
fix input field dont work in webview and input type file not working in webview .
Read more >HTML input type 'file' is not working on webview in ... - YouTube
HTML : HTML input type ' file ' is not working on webview in android. Is there any way to upload file. 317...
Read more >html file input does not work in android WebView - CodeRanch
Everything in my android web app is working as expected except the html file input fields coded as in webpage.When i click on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @esamelson , the issue is said to be resolved in RN thread , but does not work in latest version of expo any plans for fixes ?
Any updates on this ?