Answer the question
In order to leave comments, you need to log in
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
in the general case - "mazes" (although everything is transparent there) from folders
* 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 questionAsk a Question
731 491 924 answers to any question