Software Archive
Read-only legacy content

Camera and select image from photo album of phone

xkevin
New Contributor I
227 Views

Is there a tutorial here that can capture an image then upload it on server(php) as well as Select a photo from image gallery?

I am planning to make an app in which the user can send message attaching an image to it. The image can be directly capture though camera or can select a photo from the gallery. Guide and help is much appreaciated. Thank you!

0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
227 Views

Hi,

Here is an XDK tutorial about taking a photo or getting a picture from device gallery:

https://software.intel.com/en-us/xdk/articles/cordova-core-plugin-camera-short-code-example

To upload to a server, you need the file transfer plugin. Here is a complete tutorial, photo and upload, you may complement it with the above link.

http://zacvineyard.com/blog/2011/03/upload-a-file-to-a-remote-server-with-phonegap

Regards,

Diego

0 Kudos
Reply