2

i'm having issues calling the database content(images) in my react component. Any help in how to call it?

I've been trying to upload pictures on my App, but i want to upload the pictures from the database and call them in the front end (react component) .

What i did was create the MERN App and created my mongoose model schema & it's route, also i created the database collection and connected my backend to the database.

1 Answer 1

1

You have to use multipart form data. And also you have to save the images in some location in your server or save it in cloud like amazon s3 for example and then store the image URL in your mongo db. Thats the good appraoch. You can find examples here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.