# Input Type File Ionic

**URL:** <https://forum.ionicframework.com/t/input-type-file-ionic/44798>\
**Category:** ionic-v3\
**Created:** [February 25, 2016, 9:06pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798 "2016-02-25T21:06:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![remiprivet](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/remiprivet/32/91083_2.png) [@remiprivet](https://forum.ionicframework.com/u/remiprivet)\
**Post date:** [February 25, 2016, 9:06pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/1 "2016-02-25T21:06:36Z")

</div>

Hey !

I just wanted to know if an input type file will be available in Ionic version 2 ?  
I mean a beautiful one… 🙂

Thanks by advance for your answer !

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 25, 2016, 9:43pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/2 "2016-02-25T21:43:32Z")

</div>

Nothing on the roadmap ATM, but you could make a feature request for this.  
As it’s a file input, it’s an interesting component, since it would require some native functionality as well.

---

<div class="post-metadata">

**Author:** ![LordRahl001](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@LordRahl001](https://forum.ionicframework.com/u/LordRahl001)\
**Post date:** [February 29, 2016, 6:38pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/3 "2016-02-29T18:38:51Z")

</div>

Then please, how do we upload files to a remote server in ionic v2 in d meantime!! I haven’t been able to get any tutorial!!  
Thanks!

---

<div class="post-metadata">

**Author:** ![weolopez](https://avatars.discourse-cdn.com/v4/letter/w/8797f3/32.png) [@weolopez](https://forum.ionicframework.com/u/weolopez)\
**Post date:** [February 29, 2016, 8:11pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/4 "2016-02-29T20:11:44Z")

</div>

```
<input type="file"

```

you need to style it to hide the ugly native button and layer a pretty one on top (hack)

---

<div class="post-metadata">

**Author:** ![LordRahl001](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@LordRahl001](https://forum.ionicframework.com/u/LordRahl001)\
**Post date:** [February 29, 2016, 8:28pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/5 "2016-02-29T20:28:30Z")

</div>

Pls I will appreciate if u can direct me to an ionic v2 file upload tutorial!!!  
Thanks!!!

---

<div class="post-metadata">

**Author:** ![bowpunya](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bowpunya/32/100081_2.png) [@bowpunya](https://forum.ionicframework.com/u/bowpunya)\
**Post date:** [May 6, 2016, 5:41pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/6 "2016-05-06T17:41:07Z")

</div>

any update? when i use `<input type="file"` the file input is not there (not rendered), thanks

---

<div class="post-metadata">

**Author:** ![pjsb](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@pjsb](https://forum.ionicframework.com/u/pjsb)\
**Post date:** [May 30, 2016, 8:58am UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/7 "2016-05-30T08:58:29Z")

</div>

Same Problem herw file input is not rendered. Are you also using ion-item around like us? The problem is now a issue: [https://github.com/driftyco/ionic/issues/6643](https://github.com/driftyco/ionic/issues/6643)

---

<div class="post-metadata">

**Author:** ![pjsb](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@pjsb](https://forum.ionicframework.com/u/pjsb)\
**Post date:** [May 31, 2016, 2:30pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/8 "2016-05-31T14:30:40Z")

</div>

We created a possible solution, we want to share: [http://pjsdev.blogspot.de/2016/05/ionic-2-beta-6-angular-2-styled-upload.html](http://pjsdev.blogspot.de/2016/05/ionic-2-beta-6-angular-2-styled-upload.html)

---

<div class="post-metadata">

**Author:** ![chrisbenseler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chrisbenseler/32/90788_2.png) [@chrisbenseler](https://forum.ionicframework.com/u/chrisbenseler)\
**Post date:** [May 31, 2016, 2:59pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/9 "2016-05-31T14:59:49Z")

</div>

In my app, I’m using a plugin to open the camera or the stored files folder

> **[apache/cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera)**
>
> cordova-plugin-camera - Mirror of Apache Cordova Plugin camera

then I convert the file to base64 and send it via ajax to my backend API.

---

<div class="post-metadata">

**Author:** ![gfviegas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gfviegas/32/100537_2.png) [@gfviegas](https://forum.ionicframework.com/u/gfviegas)\
**Post date:** [June 1, 2016, 4:39pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/10 "2016-06-01T16:39:53Z")

</div>

I’d opened a issue on github to a feature request. You can collaborate with us creating the File Input Component, [https://github.com/driftyco/ionic/issues/6628](https://github.com/driftyco/ionic/issues/6628)

---

<div class="post-metadata">

**Author:** ![leob](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/leob/32/14245_2.png) [@leob](https://forum.ionicframework.com/u/leob)\
**Post date:** [March 19, 2017, 6:44am UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/11 "2017-03-19T06:44:52Z")

</div>

Just use this: [https://gist.github.com/MatiMenich/ac87ee097706bf61b831](https://gist.github.com/MatiMenich/ac87ee097706bf61b831)

---

<div class="post-metadata">

**Author:** ![kiplphp04](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kiplphp04](https://forum.ionicframework.com/u/kiplphp04)\
**Post date:** [June 14, 2017, 11:27am UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/12 "2017-06-14T11:27:14Z")

</div>

Hello All, I have a different issue ?  
When i use \<input type=“file” in my project, it works fine but after selecting file, it show reverse file type icon,  
Please suggest me if any one have some solutions

---

<div class="post-metadata">

**Author:** ![knaggita](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/knaggita/32/112588_2.png) [@knaggita](https://forum.ionicframework.com/u/knaggita)\
**Post date:** [August 21, 2017, 9:18am UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/13 "2017-08-21T09:18:21Z")

</div>

This works for me

```auto

<ion-item>
        <label class="item item-input"> <input type="file" id="upimgfile" name="uploadfile" ng-model="orderDetails.uploadfile">
        </label>
        <div class="preview-img"> <img id="myImage" width="150" height="150" size="30" /> </div>
      </ion-item>

```

---

<div class="post-metadata">

**Author:** ![eislasq](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eislasq/32/117958_2.png) [@eislasq](https://forum.ionicframework.com/u/eislasq)\
**Post date:** [April 26, 2018, 12:52pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/14 "2018-04-26T12:52:12Z")

</div>

Great, Just setting sourceType to PHOTOLIBRARY : 0

---

<div class="post-metadata">

**Author:** ![SylvainB47260](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SylvainB47260](https://forum.ionicframework.com/u/SylvainB47260)\
**Post date:** [July 25, 2018, 1:12pm UTC](https://forum.ionicframework.com/t/input-type-file-ionic/44798/15 "2018-07-25T13:12:34Z")

</div>

Thanks a lot, it works for me !
