Can download ISO file by URL

This commit is contained in:
2023-09-05 16:12:20 +02:00
parent 4b55e17ee0
commit e7d5747b99
11 changed files with 231 additions and 9 deletions

View File

@ -18,4 +18,15 @@ export class IsoFilesApi {
progress: progress,
});
}
/**
* Upload iso from URL
*/
static async UploadFromURL(url: string, filename: string): Promise<void> {
await APIClient.exec({
method: "POST",
uri: "/iso/upload_from_url",
jsonData: { url: url, filename: filename },
});
}
}