Upload and view multiple images in Node JS and Mongo DB

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

Комментарии • 14

  • @minatouzumaki6
    @minatouzumaki6 5 месяцев назад

    Please sir I'm having issues with my project, after submitting the form and choose image the image will show and later on it will not show again, this is a live project I use mongodb I don't know maybe MongoDB can't store image or my referring is wrong

    • @AdnanAfzal565
      @AdnanAfzal565  5 месяцев назад

      If it is displaying and then disappear after few hours, the problem will be with the hosting provider. Some hosting providers do not provide persistent storage. Try using Heroku or Google Cloud.

    • @minatouzumaki6
      @minatouzumaki6 5 месяцев назад

      @@AdnanAfzal565 thank you very much ,I taught the issue is from mongodb,I was advice to use cloudinary but I'm not convenient with it 😊but this reply save my life ♥️♥️♥️♥️

    • @AdnanAfzal565
      @AdnanAfzal565  5 месяцев назад

      You are welcome. Glad it helped :)

  • @spiritualiteislamique9136
    @spiritualiteislamique9136 2 года назад

    This video is very useful, it helps me to better understand multiple images using nodejs , but if we are more users, how to assign images to them? I love all your videos, your channel is a great school of computer science🤗

    • @AdnanAfzal565
      @AdnanAfzal565  2 года назад +1

      While saving them in "images" collection, save a user object too:
      user: {
      _id: "id of user",
      name: "name",
      email: "email"
      }
      Then while displaying to user, use the mongo DB query:
      const images = db.collection("images").find({
      "user._id": "user id"
      }).toArray()
      It will return all images assigned to that user.

    • @spiritualiteislamique9136
      @spiritualiteislamique9136 2 года назад

      @@AdnanAfzal565 thanks bro, but Am trying to update it also to a social network code , but something wrong , I hope you will add this multiple image featured into social network video ...🤖

    • @AdnanAfzal565
      @AdnanAfzal565  2 года назад +1

      Okay. You can try to add it in social network because that is in Node JS and Mongo DB too. I will add it in its next release.

    • @spiritualiteislamique9136
      @spiritualiteislamique9136 2 года назад

      @@AdnanAfzal565 that s nice, Am waiting for it so , thank you so much! 💗

    • @AdnanAfzal565
      @AdnanAfzal565  2 года назад

      You are welcome.

  • @riviannews1963
    @riviannews1963 2 года назад

    Thank you for sharing the knowledge. R. R

  • @jeffery614
    @jeffery614 Год назад

    thank you, I make this app work!