Can download ISO file by URL
This commit is contained in:
@ -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 },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user