@eleven-am/nestjs-storage
Version:
A NestJS module for uploading files to cloud storage providers
25 lines (21 loc) • 446 B
text/typescript
export interface IFile {
name: string;
path: string;
size: number;
mimeType: string | null;
isFolder: boolean;
modifiedAt: Date;
}
export interface IFileWithParentName extends IFile {
parentName: string;
}
export interface Header206 {
contentType: string;
contentLength: string;
contentRange: string;
contentDisposition: string;
}
export interface PartialStream {
stream: NodeJS.ReadableStream;
headers: Header206;
}