delight-im / Android-AdvancedWebView

Enhanced WebView component for Android that works as intended out of the box
MIT License
2.39k stars 574 forks source link

Fails in file uploading #262

Closed moylir closed 3 years ago

moylir commented 4 years ago

I'm using an in my code and, although the navigator for selecting the files is opened, if I choose a file it ignores the selection and navigator is just opened once per app execution.

This is my complete in case it helps:

<input type="file" font-family: monospace; id="inputFileToLoad" align="center" accept=".jpg,.jpeg,.png" onchange="read(this);" width="48"/>

tegarkurniawan commented 4 years ago

same issue

hichemkanon commented 3 years ago

same issue me too

ocram commented 3 years ago

Thanks!

I guess the font-family: monospace; in the original post doesn’t actually belong there, right?

What about some absolutely basic <input type="file" id="avatar" name="avatar"> without extra attributes such as accept or onchange? Can you reproduce the same problems with that syntax?

And what Android versions are you experiencing these problems on?

mhemon commented 3 years ago

the same problem, my app open gallery app once selected an image it's close nothing selected in the browser and open chooser at once per execution. I check the link with chrome browser it works fine only problem in my app browser.

ocram commented 3 years ago

Please see the newer https://github.com/delight-im/Android-AdvancedWebView/issues/285 now