SyntaxFix
Write A Post
Hire A Developer
Questions
This works for me, I hope helps to someone.
var frm = $('#frm'); let formData = new FormData(frm[0]); axios.post('your-url', formData) .then(res => { console.log({res}); }).catch(err => { console.error({err}); });