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

It would be nice if developer can override openFileInput method #210

Open sfshine opened 6 years ago

sfshine commented 6 years ago

I have a feature that open a AlertDialog when click FILE LABEL where user can choose ''choose file from gallery" or "take picture directly" I check the source code find that I cannot override the FileInput process logic that AdvancedWebView defined. It would be nice if developer can override openFileInput method and do some customizations

image

ocram commented 5 years ago

You’re right. If we find the right abstraction, we should implement that. Thank you!

anukools commented 5 years ago

Any update on this as I am not getting "Choose from gallery or take picture" option from webview.

@sfshine Can you suggest the changes required to implement this.

ocram commented 5 years ago

@anukools This issue here is just to simplify extending the functionality for file uploads in the future. If you want camera access right now, you should take a look at https://github.com/delight-im/Android-AdvancedWebView/issues/10, https://github.com/delight-im/Android-AdvancedWebView/issues/16, https://github.com/delight-im/Android-AdvancedWebView/issues/20 and https://github.com/delight-im/Android-AdvancedWebView/issues/81 instead.