Cloudinary Image Upload with Nodejs and React

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

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

  • @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.

  • @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

  • @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!

  • @patricioarecco9984
    @patricioarecco9984 11 месяцев назад

    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

  • @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.

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

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

  • @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.

  • @teerapatprommarak2070
    @teerapatprommarak2070 4 года назад +4

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

  • @SyamKumarVoleti
    @SyamKumarVoleti 3 года назад +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  3 года назад +1

      Oh cool. How fotos like meteor?

  • @jhjhj2172
    @jhjhj2172 3 года назад

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

  • @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!

  • @sahej97
    @sahej97 4 года назад +1

    You are awesome
    Your channel needs more subscribers

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

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

  • @mariyamariya9081
    @mariyamariya9081 4 года назад

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

  • @modern_sapien
    @modern_sapien 3 года назад +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  3 года назад +1

      Yasss! Glad you enjoyed it :)

    • @modern_sapien
      @modern_sapien 3 года назад

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

    • @JamesQQuick
      @JamesQQuick  3 года назад +1

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

  • @gustavoloera2826
    @gustavoloera2826 3 года назад

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

  • @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.

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

    Thanks a lot. Keep it up bro.

  • @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

  • @Cloudinary
    @Cloudinary 3 года назад +1

    Love the video! 🙌

  • @LAVISHGOYAL
    @LAVISHGOYAL 3 года назад

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

  • @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.

  • @rodolphobravo298
    @rodolphobravo298 4 года назад

    Great video! Thank you from Brazil!

  • @walterdanielmejia9130
    @walterdanielmejia9130 3 года назад

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

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

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

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

      Yayyyyy

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

      @@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

  • @swuh87
    @swuh87 3 года назад

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

  • @PrabhjotSingh-xn1rs
    @PrabhjotSingh-xn1rs 4 года назад +1

    Thanks Bro, Really needed this

  • @ikurbano
    @ikurbano 3 года назад

    To the point, clear and concise. Thank you1

  • @freezemasterslick
    @freezemasterslick 3 года назад

    Awesome vid Dude! You saved my life!!!

  • @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

  • @stuartYoung559
    @stuartYoung559 10 месяцев назад

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

  • @jhmesseroux
    @jhmesseroux 3 года назад

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

  • @duvanalonsogoezcorrea842
    @duvanalonsogoezcorrea842 3 года назад

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

  • @FuriousOrangutan
    @FuriousOrangutan 4 года назад

    Thanks very much James, i need this tutorial

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

    super cool.thx.

  • @igdev6095
    @igdev6095 3 года назад +1

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

  • @eraldoperdomo577
    @eraldoperdomo577 3 года назад

    great explanation

  • @alexandrmerser8443
    @alexandrmerser8443 3 года назад

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

  • @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?

  • @samerkayali4525
    @samerkayali4525 4 года назад

    Awesome!! just what I needed

  • @yacouvbanou6886
    @yacouvbanou6886 8 месяцев назад

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

  • @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?

  • @joecolas
    @joecolas 4 года назад

    thank you James.

  • @ishwaksharda1506
    @ishwaksharda1506 4 года назад

    Really, really a nice video!

  • @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!

  • @matthewisaac6624
    @matthewisaac6624 3 года назад

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

  • @Skielnet
    @Skielnet 4 года назад

    Thank you, helped me a lot

  • @arescatalin1407
    @arescatalin1407 3 года назад

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

  • @ghassanclassic7689
    @ghassanclassic7689 3 года назад

    Thank you very much 🙏

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

    heyy! how to upload multiple images using same?

  • @gajendramahadev1203
    @gajendramahadev1203 4 года назад

    thanks for your video bro!

  • @321123580
    @321123580 4 года назад

    Great tutorial, thank you

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

    any simple way to upload multiple files at once?

  • @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?

  • @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?

  • @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?

  • @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?

  • @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 ??

  • @noorulamin2652
    @noorulamin2652 3 года назад

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

  • @hamza2792
    @hamza2792 3 года назад

    What color theme are you using for vs code?

  • @ishraq95
    @ishraq95 4 года назад

    I think it's the best tutorial..

  • @AmanSingh-hp6ey
    @AmanSingh-hp6ey 3 года назад

    what's the use of fileInputState ?

  • @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

  • @saitejagatadi9711
    @saitejagatadi9711 3 года назад

    Super ooooo super video

  • @puregameplay6961
    @puregameplay6961 3 года назад

    Thank you so mcuh sirrr

  • @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'

  • @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.

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

    thanks alot

  • @dschulz12
    @dschulz12 3 года назад

    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

  • @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?

  • @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

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

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

  • @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?

  • @jefftirey1075
    @jefftirey1075 3 года назад

    bravo!

  • @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

  • @shafiquemohammed4814
    @shafiquemohammed4814 4 года назад

    Awesome

  • @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

  • @reww5780
    @reww5780 4 года назад

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

    • @JamesQQuick
      @JamesQQuick  4 года назад

      Did you install the library?

  • @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

  • @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?

  • @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.

  • @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

  • @naumanshigri
    @naumanshigri 3 года назад

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

  • @KB-vf5jw
    @KB-vf5jw 3 года назад

    that bonus is no less important than the main point

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

    Thanks a lot! It really helped me.

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

    Thank you so much!

  • @lonkin-ilya
    @lonkin-ilya Год назад

    Thank you so much!