Implementation of a database-assisted file system, may be a good thing for a site with little files. But as your site grows, It can be a little worrying. Lets say I've a file structure as follows. (this is not far from what is really in my case).
As you might have notice each gallery folder contains many pictures and there are lots of them. There are also many other folder containing many more files. Now to use any of these files in Contao 3 Content Element or News, It has to be registered in table tl_files by Synchronizing from Backend.Code:/files |_gallery : |_gallery1 (about 400pics) : |_gallery2 (about 900pics) : |_gallery3 : |_gallery4 (about 150pics) : : : : : |_gallery40 : |_gallery41 (about 300pics) : |_gallery42 : | : : : : : |_gallery92 (about 600pics) : |_downloads (about 200 files) |_members (about 120 files) |_news (about 3000 files) : :
What do you think now in above case, will the Synchronizing work when I click it?
More often then not I'll bet, your script will timeout or run into memory issues, rendering the website without images!!
People may argue that, if you upload the from Contao's file manager it will work. But then each gallery with more than 100 files! who'll not use FTP for this?
Any files uploaded with FTP, without Synchronizing you can't make a gallery, and if you synch it'll break the site. What a dilemma it is, I think we have to rethink the database-assisted file system in Contao 3.
Database-assisted file system in Contao 3 pro.
- Meta data, very nice I liked it
- Moving files around, OK but who do...
Database-assisted file system in Contao 3 cons.
- As I written mentioned above its a ticking bomb
- without Synchronizing you can't use file from FTP upload
- Exclude folder is not well thought. (If you place an Image in content, later you choice to exclude this images containing folder. Your image is also gone from the FE. Actually this just beats the 2 point from Pro above.)
I hope i am wrong, in my observations, as I would love to see Contao is right. What Do You think!!
Related Topics
viewtopic.php?f=6&t=5978
viewtopic.php?f=6&t=5923
https://github.com/contao/core/issues/5232
Note: If you are not reading this on site https://community.contao.org/. Then you are reading a theft content
Bookmarks