src/utils.js
function makeFormData( payload ) {
  let body = new FormData()
  for( let k in (payload || {}) ) {
    body.append( k, payload[k] )
  }
  return body
}
function makeFormData( payload ) {
  let body = new FormData()
  for( let k in (payload || {}) ) {
    body.append( k, payload[k] )
  }
  return body
}
function makeFormData ( payload ) { let body = new FormData ( ) for ( let k in ( payload || { } ) ) { body . append ( k , payload [ k ] ) } return body }
Convert an object into HTML5 FormData.
Convert an object into HTML5 FormData .