Display info of uploaded files
This commit is contained in:
@ -25,4 +25,16 @@ export class FileApi {
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a file information
|
||||
*/
|
||||
static async GetFile(id: number): Promise<UploadedFile> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
method: "GET",
|
||||
uri: `/file/${id}`,
|
||||
})
|
||||
).data;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user