First PDF attempt
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user