chanphiromsok / fastify-file-interceptor

fastify file interceptor is create for upload image for NestJs using FastifyAdapter
MIT License
22 stars 3 forks source link

File in memory instead of saved to disk #4

Closed Varagos closed 1 year ago

Varagos commented 1 year ago

Is there any example with a controller that does not store automatically the file somewhere, but instead keeps it in memory (attached to the request for example) ?

chanphiromsok commented 1 year ago

Is there any example with a controller that does not store automatically the file somewhere, but instead keeps it in memory (attached to the request for example) ?

I didn't add MemoryStorage to example and here is the refs doc

https://github.com/fox1t/fastify-multer#memorystorage

this library is base on this one so I think it should work just replace diskStorage with your memory storage

chanphiromsok commented 1 year ago

Is there any example with a controller that does not store automatically the file somewhere, but instead keeps it in memory (attached to the request for example) ?

I think issue can close now 😅. Happy coding