feat(upload): Added body to download function (#1523)

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
enri90
2024-12-03 14:35:11 +01:00
committed by GitHub
co-authored by FabianLars
parent ce83d53775
commit 05c62d731f
8 changed files with 24 additions and 12 deletions
+4 -2
View File
@@ -45,7 +45,8 @@ async function download(
url: string,
filePath: string,
progressHandler?: ProgressHandler,
headers?: Map<string, string>
headers?: Map<string, string>,
body?: string
): Promise<void> {
const ids = new Uint32Array(1)
window.crypto.getRandomValues(ids)
@@ -61,7 +62,8 @@ async function download(
url,
filePath,
headers: headers ?? {},
onProgress
onProgress,
body
})
}