D
D
DEnisLEB2018-07-20 10:32:14
Web development
DEnisLEB, 2018-07-20 10:32:14

How to organize the storage of user files?

There is a need to allow the user to make investments, what is the best way to do this? create mazes from folders ? or in db?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2018-07-20
@RidgeA

in the general case - "mazes" (although everything is transparent there) from folders

Y
Yupa20171123, 2018-07-20
@Yupa20171123

* Storage: Attachment size. If "small" then the database. And if the FS is large (or it will fill up quickly). Or each user has put on a file or partition.
* Security: If the database can be pulled out or changed only in it (as a rule). If the FS is either an implementation on the software (so that it was impossible to exit it) or forosho filter requests.
* Access: the system of symbolic links allows you to organize directories with a search no worse than in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question