Skip to content

Instantly share code, notes, and snippets.

@calendee
Created January 15, 2015 13:26
Show Gist options
  • Save calendee/40a0afa20deaad5bb058 to your computer and use it in GitHub Desktop.
Save calendee/40a0afa20deaad5bb058 to your computer and use it in GitHub Desktop.
ImageUploadService.uploadImage(scope.imageURI).then(
function(result) {
var url = result.secure_url || '';
var urlSmall;
if(result && result.eager[0]) urlSmall = result.eager[0].secure_url || '';
// Do something with the results here.
$cordovaCamera.cleanup();
},
function(err) {
// Do something with the error here
$cordovaCamera.cleanup();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment