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