react-simple-upload
Version:
a react Uploader library implements html5 file upload and provides multiple simultaneous, stable, fault tolerant and resumable uploads
28 lines (27 loc) • 807 B
TypeScript
/// <reference types="react" />
import { LibFile } from 'simple-uploader.js';
import './index.scss';
interface IProps {
file: LibFile;
list?: boolean;
children?: ({ error, paused }: {
name: string;
size: string;
averageSpeed: string;
error: boolean;
paused: boolean;
isComplete: boolean;
isUploading: boolean;
progress: number;
formatedTimeRemaining: string;
status: 'success' | 'error' | 'uploading' | 'paused' | 'waiting';
statusText: string;
fileCategory: string;
pause: () => void;
retry: () => void;
resume: () => void;
remove: () => void;
}) => JSX.Element;
}
export declare const UploaderFile: ({ file, list, children }: IProps) => JSX.Element;
export {};