DEV Community

Discussion on: Uploading Images on MongoDB via nodeJS

Collapse
 
fakorededamilola profile image
Fakorede Damilola

Hello,
I really don't understand the file you mean, but there are basically three main file variables here. The file you get from the storage object has a property (this is from the multer-gridfs-storage), the file you pass has an argument (this is the file the user uploads. and you can get access to properties such has the originalname) and the file which I used has the property of an object which I sent back to the user(this is not really important,you can just easily redirect the person.

Hope that answers you question

Collapse
 
alirazamaker profile image
Ali-raza-maker

Hello Sir i need your help

Thread Thread
 
fakorededamilola profile image
Fakorede Damilola

Hi, how can I be of assistance