Community
cancel
Showing results for 
Search instead for 
Did you mean: 
xkevin
New Contributor I
58 Views

Camera and select image from photo album of phone

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!

Tags (2)
0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
58 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

Reply