Cloudinary Image Upload with Nodejs and React

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 131

  • @habeebshaheryaar9555
    @habeebshaheryaar9555 4 роки тому +33

    AWESOME tutorial...
    the only improvements, in my view are,
    1. could have used ES6 syntax
    2. should have shown installation of cloudinary packages.

  • @salmon.hanif9000
    @salmon.hanif9000 4 роки тому +2

    Thank you SOO MUCHHH!
    You have no idea how much this video helped me. I was stuck on how to setup cloudinary for months, and because of it i couldnt deploy my website. Thanks a million!

  • @KB-vf5jw
    @KB-vf5jw 3 роки тому

    i like watching you, you are calm and talking straight to the points no laugh no shit talking thank you

  • @serjio8781
    @serjio8781 4 роки тому +2

    This could not have been better! I love it. You've got a new sub and holy shit you deserve much more subs.

  • @jkaplan4961
    @jkaplan4961 3 роки тому +2

    I was not able to get the gallery to display using my folder as cloud name/ nor asset folder I created

    • @chirag1718
      @chirag1718 Рік тому

      Bro make sure added v2 in "const cloudinary = require("cloudinary").v2" and "const result = await cloudinary.uploader.upload(file, {
      folder: "assets/product"
      }); worked for me and i was just searching for hours

  • @patricioarecco9984
    @patricioarecco9984 Рік тому

    Thank you so much. I've been searching for two days before finding this tutorial.

  • @matthewmcmorries7600
    @matthewmcmorries7600 2 роки тому

    Woah! I totally just met you at a MeetUp in Memphis. Thanks for doing what you do!
    -Loyal New Subscriber

  • @teerapatprommarak2070
    @teerapatprommarak2070 4 роки тому +4

    This is what I'm looking for, Thank you James.

  • @benjaminrr128
    @benjaminrr128 3 роки тому +1

    MUCH appreciated James.
    Ran into an issue: mapping my images wouldn't render. Fix: changed my cloudinary name to contain no special characters. There is an additional step required if your cloudinary name has a special character in it (e.g. - ). simplest fix, remove special character from cloudinary, (and update the places you might have used your old cloudinary name for the new one). Maybe this will help someone in the future. cheers.

  • @igdev6095
    @igdev6095 3 роки тому +1

    How can I get the link of the image directly when uploaded?

  • @LongBoy.0
    @LongBoy.0 3 роки тому +2

    Great video, this is a great expansion of Cloudinary's documention which I felt was a bit sparse on the Nodejs config section. Thanks James.

  • @jhmesseroux
    @jhmesseroux 3 роки тому

    thank for this video . I have a question , how can i upload 2 photos at the same time ??

  • @parthardeshana
    @parthardeshana 2 роки тому

    thanks, brother!!!!
    its been significant to learn from you

  • @sahej97
    @sahej97 4 роки тому +1

    You are awesome
    Your channel needs more subscribers

  • @shubhamsinghvi9338
    @shubhamsinghvi9338 2 роки тому

    23:55 , he submitted twice and the second click got him to upload, same thing happened to me, first click shows error second click shows success, why is that happennig ??

  • @SyamKumarVoleti
    @SyamKumarVoleti 4 роки тому +2

    This is a super cool video. Thanks James. I am going to rewrite this to fit into my REACT Meteor project. Cheers !

    • @JamesQQuick
      @JamesQQuick  4 роки тому +1

      Oh cool. How fotos like meteor?

  • @qcmira2024
    @qcmira2024 3 роки тому +1

    I am really happy I came across your video. Great tutorial, I learned a lot ! Thank you !

  • @k_litardo
    @k_litardo 4 роки тому

    This is the first time that is see one of ur vids and u helped me a lot with this trouble ive been looking for days!, thank u so much!

  • @ricardoalvarez4976
    @ricardoalvarez4976 2 роки тому

    31:35 if you are a kinda dummy like me and placed in attribute cloudName as your own name and get an error and you don't know why that happens, you just will place the same cloudName you used for the backend

  • @danielbowman2544
    @danielbowman2544 2 роки тому

    how would I get the body of what was posted? So that you could access its ID or URL on the frontend

  • @erixgutierrez6552
    @erixgutierrez6552 2 роки тому

    any simple way to upload multiple files at once?

  • @chavvajithendranathmkuxcki4403
    @chavvajithendranathmkuxcki4403 4 роки тому +4

    how to solve "Failed to load resource: the server responded with a status of 400 (Bad Request)" error in cloudinary

    • @itslou
      @itslou 2 роки тому

      did you find a solution ?

    • @oz4549
      @oz4549 2 роки тому

      @@itslou you sent something the server didn't accept. Could be your payload

  • @stuartYoung559
    @stuartYoung559 Рік тому

    hi , :
    getting this error instead of following the docs snippets, checked many times
    Cannot read properties of undefined (reading 'upload')
    can u help plz !!

  • @samfreeman9330
    @samfreeman9330 2 роки тому

    Thanks for this tutorial! For some reason I am getting stuck at 19:30 in your video because it says my image is too large despite it being under the 50 mb limit. Thoughts?

  • @jhjhj2172
    @jhjhj2172 3 роки тому

    thanks allot sir🙌🙌you know exactly what people want a HIGH QUALITY CONTENT

  • @ogbillity
    @ogbillity 4 роки тому +2

    Thank you for making this quality tutorial. I have a question. what if the form will have other user info like a profile page? the handleSbtmit and upload functions will be different. Also is there any major difference between using FileReader and FormData?

    • @Thelieutenet85
      @Thelieutenet85 2 роки тому

      I am starting to learn to code and doing a project as a newcomer to programming and I have been stuck with this problem. Have you ever found a solution?

  • @mikamanelka1326
    @mikamanelka1326 3 роки тому +1

    Nice tutorial, thx!
    1 question: wouldn't it be better to send the image from client directly to cloudinary instead of making the step over the server?

    • @bryanneuswanger9526
      @bryanneuswanger9526 2 роки тому

      If you did that, you'd have to go through all the trouble of hiding your Cloudinary API keys on the front-end. Hiding your API keys on the server side is a lot easier IMO.

    • @mikamanelka1326
      @mikamanelka1326 2 роки тому

      @@bryanneuswanger9526 interesting, thx!

  • @arescatalin1407
    @arescatalin1407 3 роки тому

    How would I send from nodejs to cloudinary the size I want the img to have? Thanks for the video

  • @hamza2792
    @hamza2792 3 роки тому

    What color theme are you using for vs code?

  • @shamaanpat5998
    @shamaanpat5998 2 роки тому

    heyy! how to upload multiple images using same?

  • @Cloudinary
    @Cloudinary 3 роки тому +1

    Love the video! 🙌

  • @AmanSingh-hp6ey
    @AmanSingh-hp6ey 4 роки тому

    what's the use of fileInputState ?

  • @barisballi70
    @barisballi70 2 роки тому

    Thanks a lot James, a really high quality tutorial, I learned a lot

  • @MizTamara
    @MizTamara 2 роки тому

    Unfortunately when I’m trying to fetch the image back to my UI I get a syntax error unexpected < token in Jason at position [0] does anyone know how to solve this issue?

  • @gustavoloera2826
    @gustavoloera2826 3 роки тому

    Great video, this is what i was looking for. Thanks

  • @HimanshuKumar-ph8pj
    @HimanshuKumar-ph8pj 3 роки тому

    can someone help me fix an error , strange thing hppening here ... the image is getting uploaded to cloudinary correctly but my local api server is showing error the error says
    'Missing required parameter - file'

  • @zhiven7484
    @zhiven7484 4 роки тому +1

    Anyone knows why am I getting a "Must supply api_key error" when requesting a post?

    • @JamesQQuick
      @JamesQQuick  4 роки тому

      Have you included your api key? Lol

    • @zhiven7484
      @zhiven7484 4 роки тому

      @@JamesQQuick Yes, I put my corresponding Cloudinary credentials in .env folder, but somehow I'm getting the error in console.log(uploadResponse)

    • @antoinefoggs1616
      @antoinefoggs1616 3 роки тому

      Late, but definitely be sure that dotenv is installed locally

  • @saurav6975
    @saurav6975 4 роки тому

    How do you upload multiple images?

  • @edspressomartini
    @edspressomartini 3 роки тому +1

    Not sure if this is just an Axios thing, but i was getting "ENAMETOOLONG" when uploading. a few days later I now know.... do this instead in your upload.js file.
    const uploadImage = async (imageText) => {
    try {
    const response = await Axios.post("/imageUpload", {
    data: imageText,
    headers: { "Content-type": "application.json" },
    });
    print("imageUploadResponse", response);
    } catch (error) {
    console.log(error)
    }
    };

    • @NEDCODEV
      @NEDCODEV 3 роки тому

      Hi! what does the print do here?

  • @matthewisaac6624
    @matthewisaac6624 3 роки тому

    Awesome video, very helpful... But can I follow the same steps for video uploads?

  • @O1zo
    @O1zo 3 роки тому

    Great video. You don't need the './node_module' when import, 'react' its enough. it always look for the module under the node_module first.

  • @noorulamin2652
    @noorulamin2652 4 роки тому

    Hey! how to restrict photos to be stored with width 500 and height 500 and format jpg,jpeg only?

  • @rogue8079
    @rogue8079 2 роки тому

    how to create an API that stores values like name, ID, image URL to the DB
    condition the URL must be from cloudinary while uploading
    Everything must happen with a single button submit click
    How to do this?

  • @asynctushar
    @asynctushar 2 роки тому

    Thanks a lot. Keep it up bro.

  • @quatre3743
    @quatre3743 3 роки тому

    Hi guys, so I want to store in DB the avatar from cloudinary. Is it okay to store the public_id into MongoDB?

  • @jordanfox7751
    @jordanfox7751 2 роки тому

    for some reason uploadedResponse is is coming back as undefined. does anyone know how to solve this? I think the cloudinary object itself is undefined howver, when I console it outside the post request function, i can see all of its properties including uploader and upload?? not sure what my problem is.

  • @walterdanielmejia9130
    @walterdanielmejia9130 3 роки тому

    Thanks for this video bro, you saved my life and got a new subscriber

  • @freezemasterslick
    @freezemasterslick 3 роки тому

    Awesome vid Dude! You saved my life!!!

  • @PrabhjotSingh-xn1rs
    @PrabhjotSingh-xn1rs 4 роки тому +1

    Thanks Bro, Really needed this

  • @mariyamariya9081
    @mariyamariya9081 4 роки тому

    Thank you Soooooooooo much James , while watching your video i managed to upload the image to cloudinary .you are the best👍🏼💛😊

  • @dschulz12
    @dschulz12 4 роки тому

    Can someone help me fix my 404 error? Images aren't uploading to cloudinary but I have the encoded URL in the console and the image renders as the preview. I have been stuck for a very long time

  • @its-kayes
    @its-kayes Рік тому

    Bro, you have a awesome VS code themes and Icon pack. Would you like to share themes and Icon pack settings :3
    Thanks

  • @LAVISHGOYAL
    @LAVISHGOYAL 3 роки тому

    Well well well! Exactly what I wanted. Thank you!

  • @rodolphobravo298
    @rodolphobravo298 4 роки тому

    Great video! Thank you from Brazil!

  • @ikurbano
    @ikurbano 3 роки тому

    To the point, clear and concise. Thank you1

  • @milantiwari12
    @milantiwari12 2 роки тому

    Hi, I want a similar thing for nextjs. Having issues with api key, secret etc config. Unsigned is working. Any help is appreciated.

    • @JamesQQuick
      @JamesQQuick  2 роки тому

      Can you elaborate on the trouble you’re having?

  • @swuh87
    @swuh87 3 роки тому

    thank you so much for the video. it was very useful to my project.

  • @taylorcantwell7973
    @taylorcantwell7973 3 роки тому

    What was the purpose of node here. Couldn't we just send directly to cloudinary from the client?

    • @JamesQQuick
      @JamesQQuick  3 роки тому

      You could but that would be completely open. By sending through note you could add authentication as an example. You could additionally update a piece of profile in a db if you needed to

  • @samerkayali4525
    @samerkayali4525 4 роки тому

    Awesome!! just what I needed

  • @najneindustrijaliziraniji
    @najneindustrijaliziraniji 3 роки тому

    am i missing something here? where are codes for starting point? source code at github are for finished project. i mean ok, thank you for tutorial, but starter files would be much more useful

  • @FuriousOrangutan
    @FuriousOrangutan 4 роки тому

    Thanks very much James, i need this tutorial

  • @ronidey380
    @ronidey380 3 роки тому

    Thank you so much, this is exactly the video i was looking for

    • @JamesQQuick
      @JamesQQuick  3 роки тому +1

      Yayyyyy

    • @divvagg5616
      @divvagg5616 3 роки тому

      @@JamesQQuick i have a question . In .env file ...do we have to put the values within quotes " " or without quotes . You blurred that part so it was not visible

    • @muhammadafuzarahman2326
      @muhammadafuzarahman2326 2 роки тому

      @@divvagg5616 Might be late to reply, but you can just put the values without quotes

  • @reww5780
    @reww5780 4 роки тому

    How do i fix : Error: Cannot find module 'cloudinary'

  • @alexandrmerser8443
    @alexandrmerser8443 3 роки тому

    Thanks a lot! It's very useful for me!

  • @martinmtandi335
    @martinmtandi335 3 роки тому

    how come you didnt use this attribute on your form? enctype="multipart/form-data"

    • @nielfollero5
      @nielfollero5 3 роки тому

      Probably because of file reader? Did you have the answer now?

  • @ayoubnachat5920
    @ayoubnachat5920 3 роки тому

    But the only question i want to now
    Is it secure i mean can anyone see my uploads?

  • @yacouvbanou6886
    @yacouvbanou6886 10 місяців тому

    Thank you very much. Cloudinary did not do better than you. They should pay you for this tut. Their tut is for school.

  • @nielfollero5
    @nielfollero5 3 роки тому

    I tried doing it without express.urlencoded() and it runs just fine. I wonder what is that for.

    • @nielfollero5
      @nielfollero5 3 роки тому

      it's for string and array post request. express.json() is for the object

  • @eraldoperdomo577
    @eraldoperdomo577 3 роки тому

    great explanation

  • @duvanalonsogoezcorrea842
    @duvanalonsogoezcorrea842 3 роки тому

    amigo muchas grasias Exelente aprendi mucho solo tengo palabras de felicitacion y agradecimiento. Esto estaba buscando

  • @modern_sapien
    @modern_sapien 4 роки тому +1

    I was uncertain of whether or not Cloudinary was going to be the direction I wanted to go in as far as image hosting in conjunction with Heroku.
    Thank you for this well done video, it definitely made it more approachable before pouring over more documentation.

    • @JamesQQuick
      @JamesQQuick  4 роки тому +1

      Yasss! Glad you enjoyed it :)

    • @modern_sapien
      @modern_sapien 4 роки тому

      @@JamesQQuick no seriously thank you! When I've updated my project I'll share here.

    • @JamesQQuick
      @JamesQQuick  4 роки тому +1

      @@modern_sapien Feel free to join my discord and share there as well! discord.gg/vM2bagU

  • @Skielnet
    @Skielnet 4 роки тому

    Thank you, helped me a lot

  • @ishwaksharda1506
    @ishwaksharda1506 4 роки тому

    Really, really a nice video!

  • @321123580
    @321123580 4 роки тому

    Great tutorial, thank you

  • @engineermaxwel6732
    @engineermaxwel6732 2 роки тому

    The tutorial is awesome but I was unable to continue because this is not what I am looking for. Nobody has done a tutorial on how to upload array of images and not just a single image.

    • @engineermaxwel6732
      @engineermaxwel6732 2 роки тому

      I am creating a real estate server and on the admin dashboard, they should be able to save a house back to DB with 10 images maximum. I have been able to convert all the selected images to base64 using FilleReader but when I send them back to the express server as an array my server jumps to 404 status and images are not uploaded.

  • @gajendramahadev1203
    @gajendramahadev1203 4 роки тому

    thanks for your video bro!

  • @ghassanclassic7689
    @ghassanclassic7689 3 роки тому

    Thank you very much 🙏

  • @hbela1000
    @hbela1000 3 роки тому

    super cool.thx.

  • @joecolas
    @joecolas 4 роки тому

    thank you James.

  • @naumanshigri
    @naumanshigri 3 роки тому

    xhermo song lay gulabi khabu.thus pe chaghbu. du laie na helpfull you xug ashin ashin thanks

  • @puregameplay6961
    @puregameplay6961 3 роки тому

    Thank you so mcuh sirrr

  • @saitejagatadi9711
    @saitejagatadi9711 3 роки тому

    Super ooooo super video

  • @ishraq95
    @ishraq95 4 роки тому

    I think it's the best tutorial..

  • @mastercode7851
    @mastercode7851 2 роки тому

    thanks alot

  • @jefftirey1075
    @jefftirey1075 3 роки тому

    bravo!

  • @shafiquemohammed4814
    @shafiquemohammed4814 4 роки тому

    Awesome

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 роки тому

    Awesome Tutorial ++++++++++++++++++++++ Thank You

  • @KB-vf5jw
    @KB-vf5jw 3 роки тому

    that bonus is no less important than the main point

  • @geekhacthon-pythonista9002
    @geekhacthon-pythonista9002 15 днів тому

    File Stack

  • @pawankumarmishra6699
    @pawankumarmishra6699 2 роки тому

    Thanks a lot! It really helped me.

  • @kartd02606
    @kartd02606 2 роки тому

    Thank you so much!

  • @lonkin-ilya
    @lonkin-ilya 2 роки тому

    Thank you so much!