File upload with progress tracking.
Source: web/frontend/src/api/uploads.ts
uploadFile(file: File, onProgress?: (pct: number) => void): Promise<UploadedFile>Uploads a file as multipart/form-data to POST /api/uploads.
Features:
0-100idoriginal_namesize_bytescontent_typeUsed by: FileUploader
getUploadPreviewUrl(id: string): stringReturns /api/uploads/{id}/preview for document/video previews in FileUploader and LipsyncPreviewFrame.
Calls the Uploads Router endpoint.