Open SupertigerDev opened 2 months ago
5.0.0
9.0.1
21
Linux
Ubuntu 20.04
import Fastify from "fastify"; import multipart from "@fastify/multipart"; const fastify = Fastify({ logger: true, }); fastify.register(multipart, { logLevel: "error" }); fastify.post("/", async (request, reply) => { const files = await request.saveRequestFiles({ limits: { files: 1, fields: 0, fileSize: 55655 * 1024 * 1024 }, }); reply.send({ test: "lol" }); }); fastify.listen({ port: 3000 });
edit: infact, it seems like saveRequestFiles promise just gets stuck forever or something
saveRequestFiles
file should be deleted
Seems like the solution would be to add a catch block to pipeline and unlink the file
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Prerequisites
Fastify version
5.0.0
Plugin version
9.0.1
Node.js version
21
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Ubuntu 20.04
Description
Link to code that reproduces the bug
edit: infact, it seems like
saveRequestFiles
promise just gets stuck forever or somethingExpected Behavior
file should be deleted
Seems like the solution would be to add a catch block to pipeline and unlink the file