mirror of
https://github.com/Supernova3339/anonupload.git
synced 2026-07-07 00:59:03 +02:00
Update download.php
This commit is contained in:
@@ -96,14 +96,14 @@ public static downloadFile(url: string): void {
|
||||
const blobUrl = window.URL.createObjectURL(xmlHttp.response);
|
||||
const e = document.createElement("a");
|
||||
e.href = blobUrl;
|
||||
e.download = blobUrl.substr(blobUrl.lastIndexOf('/') + 1);
|
||||
e.download = blobUrl.substr(blobUrl.lastIndexOf("/") + 1);
|
||||
document.body.appendChild(e);
|
||||
e.click();
|
||||
document.body.removeChild(e);
|
||||
}
|
||||
};
|
||||
xmlHttp.responseType = 'blob';
|
||||
xmlHttp.open('GET', url, true);
|
||||
xmlHttp.responseType = "blob";
|
||||
xmlHttp.open("GET", url, true);
|
||||
xmlHttp.send(null);
|
||||
}
|
||||
</script>'; ?>
|
||||
|
||||
Reference in New Issue
Block a user