MERN Stack Tutorial: Upload & Download files from MongoDB database

preview_player
Показать описание
In this tutorial, I show how to upload files to MongoDB databse using Express JS's Multer package, and download it on React frontend.

Рекомендации по теме
Комментарии
Автор

Your teaching is so good, I really understand more about uploading file via mongo. Thankkkksss a lotttt. Appreciate it.

sumriththanaphat
Автор

Thanks you very much for your tutorial. It was very funny and I learned a lot !😄

dimsotkt
Автор

Nice tutorial, do you perhaps have one of a MERN blog with end points for image upload to mongodb?

adhdmed
Автор

Nice tutorial can you please increase font size
And how to add authentication in this same project
Like login register user
User can upload delete download
User can only view his files not other users

Boby-onqp
Автор

thanks a brother, can you please also make a tuttorial on how to preview that freaking file, i tried a lot but was not able to do that, will appreciate a lot if you will....cheers 🍻

HarshKumar-szlo
Автор

merhabalar, dosya indirme kısmında dosyanın içeriği tam olarak nereden alınıyor acaba? Local klasörden silince dosya indirilmiyor. Bu durumda dosyayı sadece localde mi tutuyoruz? Database de sadece ismi mi yer alıyor? Eğer öyleyse, database de dosya içeriğini tutmak için bir öneriniz var mı?

sevvalyldz
Автор

Merhaba,
Yüklenen dosyaların içeriği database den mi çekilerek indiriliyor yoksa localde oluşturulan klasörden mi? Eğer localden alıyorsa canlıya aldığımızda sorun olur mu? Localden değil veritabanından çekilmesi için çözüm önerileriniz var mı? Bilgilendirir misiniz? Teşekkür ederim.

eminebusrasalihoglu
Автор

Hocam multeri gördüğüm için izlemeyi başında bırakıyorum ama bir şey sormam gerek. Prismadb, Mongodb ve Nextjs ile mongodb 'ye image storage etmem mümkün mü? Yani şimdiye kadar mongodbye bir şeyler kayıt etmek için prisma.dbName.create() gibi şeyler yaparak ilerledim. Şu anda ekstra multer 'i kullanmalı mıyım?

mervanyalcn
Автор

bro i am getting internal server error 500 error when calling the post request for additem from front end
and i can't figure it out...please help
i copied your code files as it is still getting same error

Wein_
Автор

I also have internal server error 500 saying that "Cannot read properties of undefined (reading 'path')
There was an error creating project (status code: 500)". Did you found the fix for this? Please help, I am using windows and chatGPT just can't 🤣

mirukokun
Автор

i have never see this kind of lecture woww, you should try comedy

nefouwe
Автор

hi, I've basically copied all your backend in my project but when I try to upload a file using postman I get this error {
"message": "ENOENT: no such file or directory, open 'uploads/2023-03-22T21:47:56.646ZSchermata.png'",
"stack": null
}

do you have an idea of what the problem could be?

btw thank you very much for the tutorial!

marco
Автор

Merhabalar,
Çok güzel bir video olmuş, ellerinize sağlık. Ancak böyle bir hata alıyorum. Neden kaynaklanıyor olabilir? Dilerseniz kaynak kodu da paylaşabilirim.
Error: ENOENT: no such file or directory, open

sevvalyldz