Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios send file with data

const photoFormData = new FormData();
    // dict of all elements
    photoFormData.append("avatar", file);
    photoFormData.append("email", this.state.email);
    photoFormData.append("name", this.state.name);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #axios #send #file #data
ADD COMMENT
Topic
Name
6+7 =