-
Notifications
You must be signed in to change notification settings - Fork 573
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 uploading problem #39
Comments
Thanks for your question!
|
Also, in the Activity that calls the Fragment that I'm using, i have this method:
Hope that i understood correctly how I was supposed to implement those methods. |
I have the same problem! |
Thanks for the additional details, @marcoblagoiev and @LadyDeveloper!
|
I am experiencing the exact same problem on Android 5.0.2, Am able to select a file, although it does not send the image data to the webview... |
@zilions So have you tried the things I've suggested in the previous comment? Or can you post excerpts from both your I can only imagine this is because the events are not correctly redirected from the What you all seem to have in common is that you're using the |
I have same problem now.
Any help is appreciated. |
@nashirox That warning is not related. Can you please try the suggestions posted in my previous two comments? Or post the important parts of your |
@mwaclawek thx for your reply.
Bellow is
|
@nashirox Thanks! So it appears you're not using any Apart from that, what's the site that you're trying to use the file upload on? Where exactly is the file input and what's the HTML for that input field? Can you try the following URL instead?
|
@mwaclawek Im so appreciate your kindness. thx in advance. Secondly, Thirdly, I tried after click send button. |
@mwaclawek It seems to be file selected, but HTML form cannot access selected image file... |
Managed to get it working. I'm using the .java file instead of the JAR library now, fixed all my issues. This is an amazing enhancement to the webview. The file input is now working on all different Android versions without any problems. Thanks for sharing this! |
As @zilions did, I changed using the .java file instead of JAR. But nothing gonna changed the situation. |
@nashirox In your case, everything seems to be working fine, actually. You can see this from the @zilions Oh, great to hear that! And thanks for your appreciation! But that's still really strange and shouldn't be happening. Maybe we can find the cause for these issues together. Are you using ProGuard for obfuscation? Were you using an outdated JAR perhaps? When you included the Java source file directly now, did you change the package name at the top? |
Only been using Android Studio for a week or so, bare with me. Didn't change the package name of the JAR file. I know I included it correctly since Java knew all the class/function names and was throwing no errors within my main activity Java file. Not using ProGuard or obfuscation. The error was thrown during build, can't remember what it was right now sorry. Changed form the JAR file to the Java library instead and everything worked very well. Also deleted all of my code and replaced it with your code. I had a small error occur, but found it and fixed it since I was still using a custom web chrome client, so I removed it and everything went well. |
Thank your for sharing this @mwaclawek. I just start today using your JAR and its working great, its easy to access files and GPS now. |
You can all include this library via a Maven-based Gradle dependency now (please see README). No need for copying JARs of source code anymore. Sorry for the delay! |
I have implemented the example with an activity, but when I press choose File, no picker is showing up. I am using this library with Gradle |
@umairnow Thanks! What Android version are you running this on? Can you share the code that you used to set up this library? Did you read what the README says about file uploads? |
It's just not working on kitkat API 16 to 18. on other APIs it's working fine |
I'm trying to implement file uploading in an app, and I'm testing on a phone with Android 5.0.1.
When I click the upload button, I can choose a file that i need, but after i select it, it doesn't appear selected in browser (this is how the looks like after i select the image:
)
Also, i have added
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
in my manifest file.Any help is appreciated :)
The text was updated successfully, but these errors were encountered: