W
W
Wasya UK2017-04-11 21:04:43
MongoDB
Wasya UK, 2017-04-11 21:04:43

Where is the best place to store user avatars?

I'm trying to create a mini social network. Where is it better to store user images, in MongoDb, or in a separate folder, if so, where exactly should it be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2017-04-11
@dmc1989

Don't store files in the database, only paths to them.

L
lukoie, 2017-04-11
@lukoie

Why don't you use a gravatar?

R
Roman Mirilaczvili, 2017-04-12
@2ord

You need to store avatars and other static content in a CDN.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question