fastify-file-upload
fastify-file-upload copied to clipboard
Property 'files' does not exist on type 'IncomingMessage'.ts(2339)

Hello. Do u solve this problem?
the dirty way to solve that problem is by using ts-ignore to ignore the const files = req.raw.files line
I couldn't find a proper way to solve it yet
Same problem here.
try to add this in code
declare module 'http' {
interface IncomingMessage {
files: {
[key: string]: {
name: string;
data: Buffer;
size: number;
encoding: string;
tempFilePath: string;
truncated: boolean;
mimetype: string;
md5: string;
mv: () => void;
};
};
}
}