First PDF attempt

This commit is contained in:
2025-05-01 19:35:05 +02:00
parent fe5baba610
commit 27f6f33f47
4 changed files with 656 additions and 13 deletions

View File

@ -47,4 +47,16 @@ export class FileApi {
`/file/${file.id}/download${forceDownload ? "?download=true" : ""}`
);
}
/**
* Download uploaded file
*/
static async DownloadUploadedFile(file: UploadedFile): Promise<Blob> {
return (
await APIClient.exec({
method: "GET",
uri: `/file/${file.id}/download`,
})
).data;
}
}