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);
}
}
});

 

Leave a Reply

Your email address will not be published. Required fields are marked *