Upload image to cloudinary | Node.js Rest API with mongoDB in HINDI

Sdílet
Vložit
  • čas přidán 30. 05. 2021
  • how to upload images in cloudinary from node.js rest api and will save the url of uploaded images in mongodb database.
  • Věda a technologie

Komentáře • 44

  • @ankitbhanushali1818
    @ankitbhanushali1818 Před 3 měsíci +1

    Thanks, I tried so many techniques to upload an image but not a single worked but seeing your video it just took me 10mins to upload the image

  • @arunrajorya
    @arunrajorya Před rokem +2

    Thanks I was Searching this thing from 2 weeks now finally found best solution

  • @neerajyadav2349
    @neerajyadav2349 Před 4 měsíci +2

    Thanks! you're a gem

  • @indiancuriousvoice8773
    @indiancuriousvoice8773 Před rokem +1

    Thanks, my file was not uploading, you saved me.

  • @rasel_sharif
    @rasel_sharif Před 7 měsíci

    thanks. it's helped me too much.

  • @125siddheshmhatre6
    @125siddheshmhatre6 Před 2 lety +1

    Ek no boi♥️

  • @tech-school8131
    @tech-school8131 Před 9 měsíci +2

    Sir very awesome video

  • @vinamraparashar5617
    @vinamraparashar5617 Před 3 lety

    Hello, I have multiple folders in cloudinary, I want fetch all folders in once, can u please help? Thanks

  • @rajeevmohanty1311
    @rajeevmohanty1311 Před 2 lety +2

    Brother awesome video, exactly what i was looking for...any idea what should be the workflow when we want to update an entry in the mongodb...and want to upload a new picture.

  • @pratikshasurwade7983
    @pratikshasurwade7983 Před 2 lety

    Thank U So much✨

  • @vaas2k755
    @vaas2k755 Před 6 měsíci +1

    Thank you~!

  • @amitkumargangwar9299
    @amitkumargangwar9299 Před 2 lety

    Love you brother

  • @zaidi7757
    @zaidi7757 Před rokem

    Bro Multiple images ksa set kr skta hai database ma ya tho just single image set horahe hai if someone have any idea plzzz share

  • @user-gf4kt8jm7d
    @user-gf4kt8jm7d Před rokem

    This is the wonderful video for Node js ever seen it helps a lot. 🔥🔥🔥🔥🔥 one more thing how can we get multiple images from mongo using cloudinry as flipkart or amazon has , like single product have multiple images like that how we can create can u please help ?? like if we click on the product it fetches multiple images for that product... plz help on this

  • @chandrakanthb4172
    @chandrakanthb4172 Před 2 lety

    im getting error like undefined can you help me

  • @bappirahman3294
    @bappirahman3294 Před rokem

    How to change temp files location? I'm using a serverless read-only server which allow write only one location. How can I set cloudinary to store on that location ? The default location isn't working

    • @motivator8493
      @motivator8493 Před 11 měsíci

      Hi brother i am in your place now can you please tell me how to overcome this problem

  • @ManojDas-uf1zk
    @ManojDas-uf1zk Před 4 měsíci

    sir same process repeat kiya hai par req.files.photo usko mi nhi raha hai blank aa raha hai

  • @sidbusa5335
    @sidbusa5335 Před rokem

    with FormData new data posting is simple flow.
    but when we try to edit at that time flow might be confusing little bit because there is 2 scenario
    1 - if the user does not change the image so at that time we don't want to re-upload image at that time we just get simple url instead of image object
    2 - if user change image so at that flow is simple becuase now we get image object so we can follow add image flow
    So can you tell me how can we handle both scenario from Backend side

    • @rohittomar4187
      @rohittomar4187 Před rokem

      add a another middleware before the CreateUser or UpdateUser middleware and write a condition inside that middleware :
      const checkIfImageIsChange = (req, res, next) => {
      // Instead of image add the name of the key with which you have request from frontend
      if(!req.files.image){
      next()
      }
      // Write the image upload logic here
      }
      so If user would not change image then it just goes to next middleware or Incase if user uploaded the image then the above condition will be false the the below code will execute and upload user picture.
      Note : If user is already created and he is updating data later then just use PATCH Instead of PUT and put this middleware in before the update middleware.

  • @santoshshah1523
    @santoshshah1523 Před 2 lety

    hi Big bro please make video same on firebase image store and get url for mongoDB please it will be very help full for beginners

  • @binarybulletin
    @binarybulletin Před 7 měsíci

    Fakepath ko kese resolve kre jb me react ke sath use kr rha hu

  • @prathameshjadhav2942
    @prathameshjadhav2942 Před 3 měsíci

    Thanks like kar diya subscribe tab karunga jab mera code chalega

  • @ramendrasoni3368
    @ramendrasoni3368 Před 11 měsíci

    sir ek bat batayiye ki jab folder me photo upload kar lete hai jo ki hosting me (jaha ham apni website host karte hai ) to fir alag se cloudinary kyi use kare.... akhir cloudinary paise charge karega.... zarurat kya hai cloudinaruy ki....kyu use kare.....

    • @sbsonlineclasses5963
      @sbsonlineclasses5963  Před 11 měsíci +1

      Agar aapki hosting company ye chiz provide kr rahi hai ki jaha aap apne API ko deploy kroge waha aap file store kr sakte ho to phir aap multer use kr k aap wahi store kr lo jaise aws wagera dete hai...... Bat backend API ki hai

  • @motivator8493
    @motivator8493 Před 11 měsíci +3

    But if i want to upload image directly to the cloudinary without posting it to temp file in server.

    • @aryakishan4979
      @aryakishan4979 Před 5 měsíci

      If u found the solution then pls reply back

    • @aesthetic_vibes_404
      @aesthetic_vibes_404 Před 3 měsíci +1

      ​@@aryakishan4979 in productuon you cant upload image directly to 3rd party server. Image must be saved on the server as well to perform sny other operation.

    • @aryakishan4979
      @aryakishan4979 Před 3 měsíci

      ​@@aesthetic_vibes_404 it's done I saved the file temporally in backend and when it gets uplaod to third party then it automatically delete it from backend

    • @aesthetic_vibes_404
      @aesthetic_vibes_404 Před 3 měsíci

      @@aryakishan4979 okk

  • @anjaliraj8430
    @anjaliraj8430 Před rokem

    i m getting error ..my file is not uploading

  • @IHumaAhmed
    @IHumaAhmed Před rokem

    cant find base url

  • @muhammadsofyansyah9571

    Is it can upload pdf file?

  • @funnymemes4086
    @funnymemes4086 Před 3 lety

    With jwt authentication

  • @disharamchandani1786
    @disharamchandani1786 Před 2 lety

    Can u give the GitHub link of this repo

  • @funnymemes4086
    @funnymemes4086 Před 3 lety

    Bhai kb tak aaye ga mern stack beginner tutorial

  • @bhuvneshsharma8498
    @bhuvneshsharma8498 Před rokem

    sir ye code dee sakte hoo kaya thodi help hoo jayegee

  • @hackerbuddy873
    @hackerbuddy873 Před 3 lety +4

    Make videos on python

  • @MakeuPerfect
    @MakeuPerfect Před rokem

    api base url nahi mil raha

  • @elubis7713
    @elubis7713 Před 2 lety

    .