nest-file-fastify icon indicating copy to clipboard operation
nest-file-fastify copied to clipboard

filename is missing in MemoryStorageClass

Open arnamb opened this issue 5 months ago • 2 comments

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.

arnamb avatar Feb 01 '24 09:02 arnamb

Any update on this? I need the filename field.

doxylee avatar Mar 11 '24 09:03 doxylee

update plz

sdykae avatar Apr 10 '24 15:04 sdykae