Turn File into Typescript Type in React
Budget: $10 – $30 CAD
I need to upload a file with react and turn it into the FileObject Below. Can someone help with this?
export interface FileObject<T> {
content: T;
name: string;
size: number;
sliceFile(range: Range): Promise<ArrayBuffer | Blob | Buffer>;
}
export interface FileObject<T> {
content: T;
name: string;
size: number;
sliceFile(range: Range): Promise<ArrayBuffer | Blob | Buffer>;
}