This commit is contained in:
2022-04-03 11:36:11 +03:00
parent a42013753a
commit 13d816647b
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,9 @@
let data = new FormData();
data.append('item_id', 1);
data.append('image_name', 'NAME');
let xhr = new XMLHttpRequest();
xhr.open('POST', '/v.php?type=image_delete', true);
xhr.onload = function() { console.log(this.responseText); };
xhr.send(data);