Hello I have a backend on node and I'm getting this ajax request
var arquivo = $("#assinatura");
arquivo.on('change', function (event) {
if (arquivo[0].files.length == 0)
return false;
var data = new FormData();
data.append('assinatura', arquivo[0].files[0]);
console.log(data);
$.ajax({
url: "/salvarAssinatura",
data: data,
contentType: false,
processData: false,
type: "POST",
success: function(data){
}
});
Can someone help me to know how I get the file in the backend and saved in a folder ...