How to post form data to Axios API with React JS YouTube
Nodejs Axios Post Form Data. Append ('my_file', await filefrompath ('/foo/bar.jpg')); And then add the fields to the form you want to send:
Const axios = require ('axios').default; Const fs = require ('fs'); Web working code is: Const form = new formdata(); And then add the fields to the form you want to send: Append ('my_file', await filefrompath ('/foo/bar.jpg')); Const formdata = new formdata ();. Var bodyformdata = new formdata (); Var bodydata = new formdata (); Web you can post axios data by using formdata () like:
Append ('my_file', await filefrompath ('/foo/bar.jpg')); And then add the fields to the form you want to send: Var bodydata = new formdata (); Const fs = require ('fs'); Const axios = require ('axios').default; Const formdata = new formdata ();. Web working code is: Web you can post axios data by using formdata () like: Const form = new formdata(); Var bodyformdata = new formdata (); Append ('my_file', await filefrompath ('/foo/bar.jpg'));