UNPKG

light-upload

Version:

The most powerful lightweight file upload component. Based on JS worker thread technology, it supports multi-threaded file uploads, uploads of files of any size, resumable uploads, and concurrent uploads. File uploads do not block the UI main thread. Note

9 lines (8 loc) 185 B
export interface UploadFile { id: string; file: File; progress: number; status: 'waiting' | 'uploading' | 'completed' | 'error'; name?: string; size?: number; }