I want to save a file using node JS to save a file in an attribute using mongoose schema to save an entry in mongoose collection.
What should be the type of the attribute in the schema?
And how can I save the file to this attribute?
I used the regular save function, but it saved all the attributes posted by the router except this one attribute of the image