Follow Me on Twitter

Follow Me on Twitter

MyApps

An apps to begin With..

drupalgap image upload script

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 API connection setting not working. try to change setting from module option or check your php.ini setting for (cURL support = enabled OR allow_url_fopen = On)

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

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>