We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried list my files after upload and returns a empty array, works with diskStorage save buts not with cloudinary
app.post( '/endpoint', {preHandler: upload.array('files', 2)}, async (req, reply) => { console.log(req.files) //empty ...cloudinary ...reply.send( ) })
app.post(
'/endpoint',
{preHandler: upload.array('files', 2)},
async (req, reply) => {
console.log(req.files) //empty
...cloudinary ...reply.send( ) })
The text was updated successfully, but these errors were encountered:
Following the post below I copy it into the file @types/fastify-multer.d.ts: #16 (comment)
import 'fastify' import { isMultipart } from '../../src/lib/content-parser' import { File, FilesObject } from '../../src/interfaces' type FilesInRequest = FilesObject | Partial<File>[] declare module 'fastify' { interface FastifyRequest { isMultipart: typeof isMultipart file: File files: FilesInRequest } }
Sorry, something went wrong.
No branches or pull requests
I tried list my files after upload and returns a empty array, works with diskStorage save buts not with cloudinary
app.post(
'/endpoint',
{preHandler: upload.array('files', 2)},
async (req, reply) => {
console.log(req.files) //empty
...cloudinary ...reply.send( ) })
The text was updated successfully, but these errors were encountered: