a
This commit is contained in:
parent
f605e49ab2
commit
78c9e18b4e
|
|
@ -340,9 +340,16 @@
|
|||
setFeedback('danger', '<?= _("Erreur réseau. Veuillez réessayer.") ?>');
|
||||
});
|
||||
|
||||
xhr.open('POST', 'AAARemboursement/uploadged');
|
||||
// xhr.open('POST', 'AAARemboursement/uploadged');
|
||||
setButtonLoading(true);
|
||||
xhr.send(formData);
|
||||
// xhr.send(formData);
|
||||
|
||||
const v_url = 'AAARemboursement/uploadged';
|
||||
const response = await fetch(v_url, { method: "POST", body: formData });
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
console.log("✅ Succès :", data);
|
||||
}
|
||||
alert("Après send");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user