//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