Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Axios formdata
$('#form').on('submit', function(e) {
axios.put('/url', $(this).serialize())
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment