Personally, I would say that such a solution should be based on your application requirements.
When I create a simple downloadable application, I always use DB = metadata; File itself = file system, since I have a module that I implement for each application like this, and this is a simple approach to the approach. This can lead to security problems, especially with an access server for several users / applications, where the βfolder accessβ security should be maintained at the root folder level with strictly defined permissions (not chmod 777 all :-)) So far I have not had one question with this approach. External access is associated with an external guid for a specific file.
For a multi-tenant environment, my file databases (or s, I call them media databases) also contain the CDN URL, that is, the server address that physically hosts the file, and the file is served by HttpHandler. Again, I can imagine a safer and more flexible way, but so far this has never failed me, and I know about the problems that he supports in this solution, and I'm fine with that.
But since this is an interesting topic for me, I would love to hear if someone offers other solutions when it comes to registration.
source share