# Button click to call input file=“type” not working in Test Flight and app store

**URL:** <https://forum.ionicframework.com/t/button-click-to-call-input-file-type-not-working-in-test-flight-and-app-store/161637>\
**Category:** ionic-v1\
**Created:** [April 15, 2019, 5:29am UTC](https://forum.ionicframework.com/t/button-click-to-call-input-file-type-not-working-in-test-flight-and-app-store/161637 "2019-04-15T05:29:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PritisD](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@PritisD](https://forum.ionicframework.com/u/PritisD)\
**Post date:** [April 15, 2019, 5:29am UTC](https://forum.ionicframework.com/t/button-click-to-call-input-file-type-not-working-in-test-flight-and-app-store/161637/1 "2019-04-15T05:29:34Z")

</div>

I have updated IOS sdk 11 to IOS sdk 12 as well as macOS 10.13.6. in previous SDK `input file="type"` working fine. but after update when I run the ionic app local simulator it will work but when I deployed to Test Flight or App store it wont work.

local simulator: I am able to see the `input file="type"` working fine.

![29%20AM%201](https://global.discourse-cdn.com/ionicframework/original/3X/4/e/4e59438a156de2a308cdcbc9823a9ef1f630ec61.png)

**Once same build is deployed to Test Flight as well as to app store then same code not going to work.I am not able to see the action sheet above.** below is my code

HTML Code

```auto
<button ng-click="appChatCtrl.SelectFileUpload()" ></button>

```

JS Code

```auto
self.SelectFileUpload = function () {
//this click on working to call input file
 document.getElementById("selectedFile").click();
}

```

Also HTML code for

```auto
<input type="file" id="selectedFile" onchange="angular.element(this).scope().attachFile(this.files, 'FileUpload.html')" onfocusout="angular.element(this).scope().onfocus()"/>

```

this is my code also in XCode project plist file I added **Privacy - Photo Library Usage Description**
