File uploading
This commit is contained in:
@@ -18,3 +18,11 @@ export function download_blob(blob: Blob, file_name: string) {
|
||||
// Revoking right away can cancel the download in some browsers
|
||||
setTimeout(() => URL.revokeObjectURL(url), 60_000);
|
||||
}
|
||||
|
||||
// What the files API returns, size is of the encrypted file
|
||||
export interface FileEntry {
|
||||
id: string;
|
||||
date_created: string;
|
||||
size: number;
|
||||
metadata: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user