android-js/androidjs

the browser file input does not do anything

KCGD opened this issue · 2 comments

KCGD commented

Describe the bug
I am using the html file input (https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file) to choose a file on the system, but when clicking the button, nothing happens. No prompt comes up, no error is generated, simply nothing happens.

To Reproduce
Steps to reproduce the behavior:

  1. make a button with the method and try to choose a file

Expected behavior
I would expect a prompt to show up asking me where i would like to choose a file from (weather that be from the file explorer, camera etc, as shown here:
image

in the app though, this prompt never shows up

Screenshots
image

Desktop (please complete the following information):

  • Windows 10
  • Chrome stable
  • Androidjs version: 2.2.4

Smartphone (please complete the following information):

  • Razer phone 2
  • Android
  • Chrome / stock (same thing in this case)
  • Android 9

Additional context
Add any other context about the problem here.

JKDos commented

Have you given your app permission to access the phone's storage/camera/pictures/files?

Hey @KCGD @JKDos ,
Right now Android JS doesn't support HTML's input tag.
we are looking for a community to contribute to the project still we can guide us about how to add new things to this and make this better.