Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios post not sending file

//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
 
PREVIOUS NEXT
Tagged: #axios #post #sending #file
ADD COMMENT
Topic
Name
8+4 =