drupalgap image upload script

drupalgap

use drupal’s file_save service to manage files using drupalgap
file_save(file, {
success: function(result) {
try {
// var fid=result.fid;
//$(‘input#fid’).val(result.fid);
// alert(result.fid);
form_state.values[‘fid’]=result.fid;
console.log(‘success’);
}
catch (error) {
console.log(‘_image_field_form_process – success – ‘ + error);
}
}
});

 

DrupalGap

drupalgap

DrupalGap is an open source application development kit for Drupal websites. It can be used to easily build custom multi-platform mobile apps and web apps for Drupal websites.

 

With the DrupalGap application development kit, developers can create mobile apps that communicate with their Drupal websites.

 

Web Application Development Kit

The DrupalGap¬†application development kit¬†can also be used to build web apps, which is perfect for a “headless” Drupal.