nest-file-fastify
nest-file-fastify copied to clipboard
filename is missing in MemoryStorageClass
In v1.0.0 filename is missing:
/// <reference types="node" />
import { FastifyRequest } from "fastify";
import { MultipartFile } from "fastify-multipart";
import { RouteGenericInterface } from "fastify/types/route";
import { Server, IncomingMessage } from "http";
import { StorageFile, Storage } from "./storage";
export interface MemoryStorageFile extends StorageFile {
buffer: Buffer;
}
export declare class MemoryStorage implements Storage<MemoryStorageFile> {
handleFile(file: MultipartFile, req: FastifyRequest<RouteGenericInterface, Server, IncomingMessage>): Promise<{
buffer: Buffer;
size: number;
encoding: string;
mimetype: string;
fieldname: string;
}>;
removeFile(file: MemoryStorageFile): Promise<void>;
}
As per last commit, I can see, that it was added, but it's not pushed probably to npm modules.
Any update on this? I need the filename field.
update plz