how to add a details page with cloudinary images upload ?
Hey everyone, I have been in a dilemma for so long now and I would appreciate your help. I have a reactJs project using the mern stack to create a very simple music library, user can enter his favorite track,artist,... and he would get a card with these information after bein saved to mongodb.I am trying to add cloudinary now, so that the user can click on the card(track information) and upload as many images as he wants to , but not sure how to implement that ? how to make a connection between the card the user click and the images he uploads ?! appreciate your general help
-
Hi Mohamed,
When you call our Upload API, the response includes information about the file that was uploaded, so you can use that response to update your database accordingly.
The two basic upload strategies are
1) You upload the file to us from your frontend directly using a direct API call or our Upload Widget (and when the frontend receives the response, you send a request to your backend to update your database), or
2) The uploaded file is sent from the frontend to your backend first, and then your backend performs both the upload to Cloudinary and the update of your own database.In either case, the same details are returned by Cloudinary's upload API, and if you have any questions or encounter any difficulties please let us know and we'll be happy to assist: https://cloudinary.com/documentation/upload_images
Regards,
Stephen
0
Post is closed for comments.
Comments
1 comment