C
C
CodeVision2022-02-05 12:03:46
Node.js
CodeVision, 2022-02-05 12:03:46

What does cd(null) mean in multer Node.js?

I'm looking for information about multer, namely about this piece of code. What does null mean?

cb(null, true);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2022-02-05
@yarkov

Looking for information about multer

How about opening the documentation? The callback takes an error object as the first parameter. If there is no error, then we pass null.

R
Rag'n' Code Man, 2022-02-05
@iDmitriyWinX

null - Exception if present
true/false - accept/reject file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question