feat: server-side preview generation for non-native video/audio formats

This commit is contained in:
SnapOtter
2026-06-15 11:33:45 +08:00
parent a70b13ad32
commit 412a21ee4d
4 changed files with 297 additions and 21 deletions
+4
View File
@@ -315,6 +315,10 @@ export function getFileDownloadUrl(id: string): string {
return `/api/v1/files/${id}/download`;
}
export function getFilePreviewUrl(id: string): string {
return `/api/v1/files/${id}/preview`;
}
export async function apiDownloadBlob(jobId: string, filename: string): Promise<Blob> {
let res: Response;
try {