📅  最后修改于: 2022-03-11 15:04:22.354000             🧑  作者: Mango
//push data into form data
const ConvertIntoFromData=(values)=>{
var form_data = new FormData();
for ( var key in values ) {
form_data.append(key, values[key]);
}
}
//just pass the state values it will convert data into fromdata as well as
//file data