jeudi 23 février 2017

Ember.js - formdata returns null in ember ajax request

I have encountered an issue with formdata in ember ajax call.when im trying to send formdata with ajax request it returns null value for formdata.

heres my formdata

    var formData = new FormData();  
    formData.append('url', "http://emberjs.com");
    formData.append('urlType',2);

and ajax call

this.ajax(url, 'POST', {           
      data: formData,
      headers: {
           'Content-Type': false,
           'processData': false               
      }
 });




Aucun commentaire:

Enregistrer un commentaire