I have watched several videos about this problem, but none explained it as clearly as you did. Thank you so much! Keep up the great work-I'm your new subscriber.
I would like to find out where the "type" parameter used in the data.append is coming from? Is it a javascript method that one can call in the append method to check the type of file that is being appended?
@@YSGTV-ht2se I switched to using outlook as the provider, and my emails sends now, but it gets reported as spam, which I think is happening due to me using a html template for the email once it sends, resorted to just alerting the recipient of this and provided steps for them to allow the email to reach their inbox
Hai bro, thanks for the guide, but i'm still wondering, since react capable to directly upload the image to cloudinary, why do we also need to set up the cloudinary on the backend? I tried the code without running my server and it still works? Wouldn't it be a lot simple to upload the image in client side and after the cloudinary return the url to the uploaded image, then we store that image to mongodb
Hey that's a great question! From frontend itself you can interact with cloudinary api, get the url and store in db via the backend server The only reason why I kept uploading functionality in backend was I want every actions should perform on backend for more security and control
@@webwizard8 Ahhh I see, I guess if u prefer it that way, i think it would be more concise and straightforward if u use react for HTTP request to the backend while including the file in the HTTP Request body, and all of that gets handled by the backend to upload it to the cloudinary.