fastify-universal-file-parser
v1.0.6
Published
an open-source package to make it easy to get images from the client, the package converts from multiple options(form-data, Base64, and more ) into a buffer.
Downloads
6
Readme
Fastify/Universal File Parser
This package is a modified version of the package to support the fastify projects. You can checkout the original here .
The package works the same way with the same functionality as it is called , but :
- You need to register another package that helps the form-data parse
import multer from 'fastify-multer'
fastify.register(multer.contentParser);
and that's it , you can simply call the function or use it in any of the hooks.