[Vuejs]-Submitting a dropzone with a form in vue

0👍

You’re looping through your object wrong. Try this.

$.each(data, function(key, el) {
  formData.append(key, el);
});
var T = {
  form: {
    name: '123',
    description: 'asdfasdf',
  }
};

$.each(T.form, function(key, el) {
  console.log(key, el);  
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>

Leave a comment