G
G
Grag2014-04-09 12:15:48
Yii
Grag, 2014-04-09 12:15:48

Where is the best place to store images in a Web app?

Hi all. An interesting question has arisen: how and where is it better to store images in projects?
In the database or in the file directory?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
1
1001001 111, 2014-04-09
@IgorO2

In the file directory, and in the database only links to images

D
donflash, 2014-04-09
@donflash

On the file system

E
egor_nullptr, 2014-04-09
@egor_nullptr

On an external CDN.

D
DDanya, 2014-04-09
@DDanya

Certainly in FS, and in a DB to store only links.
You can use a lightweight database a la SQLite, because the data is not big.

I
iDevArtem, 2014-04-10
@iDevArtem

for a web app, I suggest looking towards manifest ...
yes, and at the same time, all images are stored in fs

A
Alexander, 2015-02-21
@primat1987

I read somewhere that if the images are less than 256K - then in the database, if more than 1Mb - then in fs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question