-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Not able to upload a file. #555
Comments
I tried your code, It's working fine for me.
|
Hi @msarkrish I have tried like that also..it's not working for me... |
@Sunsiha I created new flutter project and added your code, it works fine. I try to upload files many time, it works correctly everytime.
I modified App minimum SDK to 17
See my screenshot it app shows selected file. |
which version of flutter and device @msarkrish |
@Sunsiha I'm using Flutter 1.22.1 and My Device is Redmi Note 4(Nougat) |
@msarkrish I really don't understand then why it is not working for me..just now I upgraded my flutter version also. |
Hi, In manifest file added the following, And in MainActivity.kt changed into the following,
|
It`s work well for me |
android:resource="@xml/provider_paths" |
Important note here about Redmi Phones. I am using Redmi Note 11 to debug my app. To do wireless debugging I had to disable MIUI optimalizations. This is causing some issues, e.g. the file picker opens but when you choose a file, nothing happens. I realised that this is not an issue of my app after I have tried to choose file in chrome and same issue happened. After enabling MIUI optimiazation file selection works fine. |
Just like you; Redmi Note Android 10; After enabling MIUI optimiazation file selection works fine. But note only this package, I use this flutter_webview_pro ,This is also the situation. so I think this is not the problem of plug -in; |
InAppWebview after select file not it's not transfer on server. |
https://stackoverflow.com/a/71968030/16504129 |
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 and a minimal reproduction of the issue. |
Environment
Device information:
Description
Am trying to upload a file in my webview. It's working fine in iOS. It's not working in Android device. When I click on Choose file button first time it will open gallery and I can select an Image but it won't display in my view. Again if I click on Choose file button it won't open gallery itself. And am not getting any error or crash. The following code snippet you can use for reference. I tried the following link duplicate) But it doesn't work. Let me know where am doing mistake.
Using the version of
flutter_inappwebview: ^4.0.0+4
.Added the following code in AndroidManifest file,
provider_paths.xml
Expected behavior:
Able to choose a file from the gallery.
Current behavior:
When I click on Choose file button first time it will open gallery and I can select an Image but it won't display in my view. Again if I click on Choose file button it won't open gallery itself. And am not getting any error or crash.
Steps to reproduce
The text was updated successfully, but these errors were encountered: