1
Hello I have a backend in Ode 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){
}
});
Could anyone help me know how I get the file in backend and saved in a folder...
I used multer, but thanks for the tip.
– Vinicius Castro