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

File Upload inside Webview #99

Open
julindra opened this issue Jun 16, 2018 · 7 comments
Open

File Upload inside Webview #99

julindra opened this issue Jun 16, 2018 · 7 comments

Comments

@julindra
Copy link

julindra commented Jun 16, 2018

Is there any way to make the Choose File feature to be works inside the webview?

I've tried to use read external storage & camera permission, but nothing is work.

And there is no debug output/error messages whenever I try to press the Choose File button.

Thanks

@peter9teufel
Copy link

peter9teufel commented Jun 22, 2018

I extended the plugin to support file uploads on Android and already created a pull request ( #105 ).

If you want to try it out if it fits your needs you can specify my github repo to be used for webview_plugin until the pull request is merged by the plugin maintainer. My Repo is up to date with the original repo here except my own changes concerning file upload on Android.

If you want to test/use my implementation in the meantime, modify the dependency in you pubspec.yaml as follows:

flutter_webview_plugin:
git:
url: https://github.com/peter9teufel/flutter_webview_plugin.git

@sureshy02
Copy link

Hi,
I tried using flutter_webview_plugin.
i used the below code
flutterWebviewPlugin.launch(verification_url['verification_url'],
userAgent: kAndroidUserAgent,
withJavascript: true );

I would like to open the camera instead it is opening my local storage.
please help me on this

@DeepakSinghaniya
Copy link

If I set geolocationEnabled = true then I am unable to access input type file. Please help

@JatanPandya
Copy link

when i am using version 0.2.1 it is allowing to select file from device, but when latest versions are used, it is restricting. And with version 0.2.1 app is not build for release giving deprecated version error.

@SucukluSalata
Copy link

when i am using version 0.2.1 it is allowing to select file from device, but when latest versions are used, it is restricting. And with version 0.2.1 app is not build for release giving deprecated version error.

yeah same

@SucukluSalata
Copy link

when i am using version 0.2.1 it is allowing to select file from device, but when latest versions are used, it is restricting. And with version 0.2.1 app is not build for release giving deprecated version error.

Did you solve your problem?

@JatanPandya
Copy link

when i am using version 0.2.1 it is allowing to select file from device, but when latest versions are used, it is restricting. And with version 0.2.1 app is not build for release giving deprecated version error.

Did you solve your problem?

Not yet. I am not working on it for now. But i think it may work if we try file upload using Javascript. Or opening the browser for file upload.

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

No branches or pull requests

6 participants