Repository navigation
[webview_flutter] not working choose file (input type file) #27924
Copy link
Copy link
Closed
flutter-team-archive/plugins
#6881Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.5Found to occur in 2.5Found to occur in 2.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginThe WebView pluginp: webview-keyboardKeyboard issues with flutter_webview pluginKeyboard issues with flutter_webview pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyplatform-views: vdIssues specific to the Android VirtualDisplay platform views backendIssues specific to the Android VirtualDisplay platform views backendr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
- Run simple index.html with tag
<input type="file">in webview_flutter - Try to click to input (choose file) and nothing happens
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.5Found to occur in 2.5Found to occur in 2.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginThe WebView pluginp: webview-keyboardKeyboard issues with flutter_webview pluginKeyboard issues with flutter_webview pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyplatform-views: vdIssues specific to the Android VirtualDisplay platform views backendIssues specific to the Android VirtualDisplay platform views backendr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Activity
edex96 commentedon Jul 23, 2019
shirllyana93 commentedon Aug 14, 2019
XuXiaowu commentedon Sep 2, 2019
I have this issue too on Android. but run on iOS fine.
ariG23498 commentedon Sep 17, 2019
ariG23498 commentedon Sep 17, 2019
Hey, I have a workaround for this. This will take another plugin though. 😄
The plugin: https://github.com/fluttercommunity/flutter_webview_plugin
The code:
jam33 commentedon Sep 25, 2019
this is an issue with native android webviews. it is not directly related to flutter (a bug within flutter), although fixing it would require the flutter team to write some code to implement the feature as the webview_flutter plugin acts as a passthrough to the native webviews.
you can see a discussion around the android native problem at:
url
agreed that this does not affect iOS as the native iOS implementation does not suffer from the same limitation as the android implementation.
i would love to see this get fixed as I spent a ton of time implementing something on a webpage with javascript that you can't do easily in flutter only to have it not work due to the inability to upload files. i guess i could technically put a flutter widget above the webview to do the upload and then have the webview take over, but that would create a pretty tricky/possibly ugly experience.
Sarthaktydy commentedon Oct 10, 2019
This plugin doesn't allow you to draw widget on top of webview you need to close the webview to show popup and everything. Also, the "input" tag works fine without "withlocalstorage:true" "withlocalstorage" is used to render HTML/js from the local storage.
deandreamatias commentedon Oct 16, 2019
Hi,
You have a small problem in your link. It is not formatted with the correct link.
About the problem, this happens only on Android. If someone wants to try to implement the solution, you can fork the plugin here.
kingctan commentedon Dec 19, 2019
kingctan commentedon Dec 24, 2019
159 remaining items
vikivyas commentedon Jun 24, 2022
Since 14 Feb 2019, this issue is the listed and none have found a good solution for new flutter developers. flutter_webview_plugin works fine yet it has android project migration pending, sometime javascript does not get loaded. webview_flutter is the best & easy to use except for this problem.
mahdiqdi commentedon Oct 25, 2022
mahdiqdi commentedon Nov 29, 2022
dupuchba commentedon Nov 29, 2022
@mahdiqdi what's great about open-source is that you can contribute instead of complaining.
Plus you can still use my old fix and take it further and adapt it to the new platform interface structure. #27924 (comment)
mahdiqdi commentedon Nov 29, 2022
rashidotm commentedon Dec 18, 2022
Hi.
I am happy to see #94051 merged which was blocking this.
Now, is there a timeframe for when this will be closed? I am holding an update to my app based on your comments.
thanks and best.
stuartmorgan-g commentedon Jan 19, 2023
I filed #118836 to track the other part of addressing this that we've discussed (showing a simple example implementation in the README).
FirdousNath commentedon Feb 24, 2023
Still facing the issue on 4.0.5
stuartmorgan-g commentedon Feb 24, 2023
@FirdousNath Please file a new issue showing your
onShowFileChooserhandling and providing details about what isn't working.github-actions commentedon Mar 10, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.