V
V
Vladimir2018-04-01 15:32:18
Software design
Vladimir, 2018-04-01 15:32:18

How to choose the right scheme for the file manager?

Good day! I plan to make a media gallery or something like a file manager. Concerned about one thing, how to store all folders and files in folders? Only a few versions came to my mind.
1) When uploading a file, save it to folders by years and months, as, for example, is implemented in WordPress. And display all files in a page by page on one page.
2) Upload files to folders that you can create or already created in advance. And for the output, read the folders and files in them and display them on the screen (It is possible to cache the output from time to time for a smaller load).
3) Create three entities: folders, files and an intermediate table. The output will be a list of files and their files.
4) Create three entities: tags, files and an intermediate table. The output will be paginated as in the first version, but only the pictures will have more tags by which it will be possible to sort.
Advise a better option, or advise your own) It is not necessary to advise ready-made file managers.
Thanks in advance for the replies!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question