Axios: Send null value as param in request

Viewed 11073
1 Answers

An empty string should do the trick.

var data = new FormData();
data.append('location_id', '');
axios.post('/location/update', data)
.then(function(response) {
    console.log(response.data);
})
.catch(function(error) {
    console.log(error);
});
Related