📜  axios post 未发送文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:22.354000             🧑  作者: Mango

代码示例1
//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