DEV Community

loading...

Strapi CMS media VS MongoDB

yobretyo profile image Bret ・1 min read

I have cards I want to display pictures to, BUT, this is a MERN stack with Strapi CMS....
Can I have pictures uploaded to my assets vs MongoDB, and loop through???
Or, is it better to Store them in MongoDB?
BUT....... how???

Discussion (4)

pic
Editor guide
Collapse
sauloco profile image
Saulo Vargas

As a rule of thumb usually I just store in DBs things that could be indexed and searchables. So most files end up in some file system (server, S3 Bucket, whatever) separated from the database.
Also I've worked with Strapi a lot.

Collapse
yobretyo profile image
Bret Author

Which do you prefer? I can’t really find all that great of a “steps” on how to display the pictures from MongoDB.... Strapi made a separate folder (collection?) that the pictures are in, it’s not in my “Store” folder, it made a “pictures” folder.

Collapse
yobretyo profile image
Bret Author

I joined the slack page for Strapi, but the people overlooked my need for help.

Collapse
yobretyo profile image
Bret Author

What’s a good step by step to use the pictures from MongoDB? it’s a bit different from the typical schemas??