mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Merge remote-tracking branch 'origin/v1' into chore/merge-v1-into-v2
This commit is contained in:
@@ -16,7 +16,7 @@ async function upload(
|
||||
filePath: string,
|
||||
progressHandler?: ProgressHandler,
|
||||
headers?: Map<string, string>,
|
||||
): Promise<void> {
|
||||
): Promise<string> {
|
||||
const ids = new Uint32Array(1);
|
||||
window.crypto.getRandomValues(ids);
|
||||
const id = ids[0];
|
||||
@@ -26,7 +26,7 @@ async function upload(
|
||||
onProgress.onmessage = progressHandler;
|
||||
}
|
||||
|
||||
await invoke("plugin:upload|upload", {
|
||||
return await invoke("plugin:upload|upload", {
|
||||
id,
|
||||
url,
|
||||
filePath,
|
||||
|
||||
Reference in New Issue
Block a user