# I can´t trigger a input type file in Device

**URL:** <https://forum.ionicframework.com/t/i-can-t-trigger-a-input-type-file-in-device/61720>\
**Category:** ionic-v1\
**Created:** [August 26, 2016, 4:54pm UTC](https://forum.ionicframework.com/t/i-can-t-trigger-a-input-type-file-in-device/61720 "2016-08-26T16:54:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edavila](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@edavila](https://forum.ionicframework.com/u/edavila)\
**Post date:** [August 26, 2016, 4:54pm UTC](https://forum.ionicframework.com/t/i-can-t-trigger-a-input-type-file-in-device/61720/1 "2016-08-26T16:54:31Z")

</div>

Hi. I have maybe one week with this problem.

When I use a **input[type=“file”]** field in my form, in **Ionic Lab** it works fine. In **Android emulator** , it works fine. But, when I run the app in my phone, and I click/tap in the field, nothing happens. The button is pressed, but the filepicker dialog doesn´t show.

My input looks like it:

```
<input class="" id="image" type="file" name="image" ng-model="data.image" file="file"onchange="angular.element(this).scope().fileNameChanged(this.files)" style="display:none;" />

```

I tried something different, adding a button that trigger the click event in JS:

`<button type="button" class="button icon ion-filing" ng-click="openFileDialog()">Select</button>`

The method **openFileDialog()** does only this:

```
   $scope.openFileDialog = function() {
      alert('Test Open File DIalog');
      ionic.trigger('click', { target: document.getElementById('image')});
    };

```

The alert is shows when I click the button, but the event is not triggered. Again, it workd fin in Ionic Lab and the Emulator, but not in my device. I tried and test this project too:

> **[krystiangw/filepicker-ionic-example](https://github.com/krystiangw/filepicker-ionic-example)**
>
> filepicker-ionic-example - Example ionic project using filepicker.io javascript library for file uploading

But the result was the same.

---

<div class="post-metadata">

**Author:** ![edavila](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@edavila](https://forum.ionicframework.com/u/edavila)\
**Post date:** [August 30, 2016, 2:25pm UTC](https://forum.ionicframework.com/t/i-can-t-trigger-a-input-type-file-in-device/61720/2 "2016-08-30T14:25:58Z")

</div>

It is so frustrating. I can´t make it works.

I tried making a simple blank project, with only:

```
  <ion-content>
          <input type="file" />
      </ion-content>

```

And nothing else. And again, in **Ionic Lab** and **Emulator** , opens the file choose dialog without problem, but when I run in my phone with:

`ionic run android --device`

Nothing happen. I don´t know if is my phone or some restriction. 😕

---

<div class="post-metadata">

**Author:** ![edavila](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@edavila](https://forum.ionicframework.com/u/edavila)\
**Post date:** [September 1, 2016, 3:24pm UTC](https://forum.ionicframework.com/t/i-can-t-trigger-a-input-type-file-in-device/61720/3 "2016-09-01T15:24:37Z")

</div>

After some investigation, I found this issue, without solution:

[https://issues.apache.org/jira/browse/CB-5294](https://issues.apache.org/jira/browse/CB-5294)

My Android version is **4.4.2** 😕 But then, does this will never work in that Android version? Does someone knows If at least it has already been fixed in later versions? My Emulator has **Android 6** , and it works in that, as far as I could test.
