How to upload and store images in mongoDB database ?

preview_player
Показать описание
Hi guys, today we will learn how to upload and store image in mongoDB database. It is not recommended in real world projects for storing media files in database. So why do we need to learn, because we are developers 😞 . Just kidding ...

If you found any mistakes or making it better, let me know in comment. I hope you have learned something.

0:54 Setup Express Web Server
2:16 Configure MongoDB Database
4:11 Configure Upload Middleware
7:25 Image Upload Route
9:26 Image Stream & Delete Routes
13:05 Testing API's
Рекомендации по теме
Комментарии
Автор

you almost got me at this description :D

razorjhon
Автор

thats what i was looking for, thanks A LOT

TheCorolek
Автор

Great Video Buudy. So much Knowlede ❤❤

PrinceKumar-uhqj
Автор

I cannot connect to the database
The message says could not connect to the database reason: TopologyDescription

arturofraile
Автор

please help me. I don't view image on brower

dcnpm_nguyenphuongnam
Автор

It is showing image not found on the webpage.What should I do?

riturajseal
Автор

How can I pass this image from frontend??

genshinnoob.
Автор

Thank you. And it will be very nice if you can make another video, this time with a real mongodb database connection (not local storage), and simple html/ejs page instead of postman.

Abdulkadir-vbvj
Автор

Great video! And what's name of theme and font in VSC?

әкрәм
Автор

Thanks For Making such helpfull videos..

apmlintern
Автор

i m getting a error message
const storage = new gridfsstorage({ typeerror: gridfsstorage is not a constructor})
kindly suggest what to do

d-vloggers
Автор

I don't show image in brower. But I create image success

dcnpm_nguyenphuongnam
Автор

You mentioned in the real world we don't insert media in database.. then how we store can you explain?

alamjamal
Автор

I am getting an error mongoose.connection() is not a function

mitulkheni
Автор

thank u very much i just have on question at 8:59 how did u figure out that imageUrl where did it came from ?!

emadeldin
Автор

When i try to post i get Error: The database connection must be open to store files

PedroHenrique-eteo
Автор

upload.single("file") middleware is not getting called
Can anyone please help?

ultimatehuzefa
Автор

Ya, ya, ya, you can just simply like every video on this guy's channel and subscribe to him cause he is too good for anyone to object to him. I am not

kunlohith
Автор

@CyberWolve
MongoParseError: option usecreateindex is not supported

I am getting this error and it could not connect to database
kindly help me as soon as possible
i am in so much hurry
please

hamzarazzaq
Автор

Is it possible in online database mongodb atlas?

bhumikdhandhukia