written xml request func

This commit is contained in:
sanjayk03-dev
2024-01-12 02:10:49 +05:30
parent be14b3b202
commit ac3e744787
2 changed files with 43 additions and 33 deletions

View File

@@ -39,8 +39,6 @@
}
};
console.log(xhr);
xhr.upload.onerror = () => {
open = false;
alert("Upload failed.");
@@ -54,9 +52,6 @@
progress = event.loaded / event.total;
};
console.log(file);
console.log(file.name);
xhr.open("PUT", `/api/file/${encodeURIComponent(file.name)}`);
xhr.send(file);
}