summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-30 18:15:50 +0300
committerMaxim Devaev <[email protected]>2022-07-30 18:15:50 +0300
commit589ec14de02de4ecf960d13d675c7f1efaa74b7c (patch)
treec0a3be50145de8f1f8eb4d3e600b9ba16c0a6482 /web
parent5ee8f7a7a34641392213cbf932a61455d87bddbd (diff)
Fixed pikvm/pikvm#783: remove incomplete msd image
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/msd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 1804e6b9..0aa6721d 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -115,10 +115,10 @@ export function Msd() {
let file = tools.input.getFile($("msd-new-file"));
__http = new XMLHttpRequest();
if (file) {
- __http.open("POST", `/api/msd/write?image=${encodeURIComponent(file.name)}`, true);
+ __http.open("POST", `/api/msd/write?image=${encodeURIComponent(file.name)}&remove_incomplete=1`, true);
} else {
let url = $("msd-new-url").value;
- __http.open("POST", `/api/msd/write_remote?url=${encodeURIComponent(url)}`, true);
+ __http.open("POST", `/api/msd/write_remote?url=${encodeURIComponent(url)}&remove_incomplete=1`, true);
}
__http.upload.timeout = 7 * 24 * 3600;
__http.onreadystatechange = __httpStateChange;