ionic-team / tutorial-photo-gallery-angular

Photo Gallery Tutorial: Ionic Angular and Capacitor
https://ionicframework.com/docs/angular/your-first-app
Other
141 stars 186 forks source link

Upload Photo from Camera / PhotoGallery to server as a file. #44

Closed Saqib92 closed 1 year ago

Saqib92 commented 2 years ago

How can we get File object from Camera / Photo gallery to upload it to Server using http request same as <input type="file"/>

jcesarmobile commented 1 year ago

you can use fetch with the webPath to get a blob, or make the plugin return the base64 and submit the base64