# Uploading file(pdf,doc) from browser using Ionic

**URL:** <https://forum.ionicframework.com/t/uploading-file-pdf-doc-from-browser-using-ionic/115857>\
**Category:** ionic-v3\
**Created:** [December 19, 2017, 1:50pm UTC](https://forum.ionicframework.com/t/uploading-file-pdf-doc-from-browser-using-ionic/115857 "2017-12-19T13:50:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [December 19, 2017, 1:50pm UTC](https://forum.ionicframework.com/t/uploading-file-pdf-doc-from-browser-using-ionic/115857/1 "2017-12-19T13:50:36Z")

</div>

I created web app using Ionic framework(So I cannot use cordova plugins). I want to upload single file to server(based on PHP) and I have the upload API link but I am not getting how to upload the file to the server. i have tried different Angular packages but nothing seems to be working.  
Can anyone point me to some tutorial or can give some sample code for uploading a file to server with PHP as backend.

Also Cardova plugins wont work in this case, since I am making a web app.

---

<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:** [July 19, 2021, 9:58pm UTC](https://forum.ionicframework.com/t/uploading-file-pdf-doc-from-browser-using-ionic/115857/2 "2021-07-19T21:58:54Z")

</div>


