Skip to content

filename is missing in MemoryStorageClass #10

@arnamb

Description

@arnamb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions