📜  上传文件 axios - Javascript 代码示例

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

代码示例5
const photoFormData = new FormData();
    // dict of all elements
    photoFormData.append("avatar", file);
    photoFormData.append("email", this.state.email);
    photoFormData.append("name", this.state.name);