Storing files securely - database or filesystem
Posted on 2016-11-01
I have a system in which trusted users can upload files to a systems.
The two appraochies Im considering are either storing the file data in a table as a blob, then having a PHP script put the file back together when its requested, or having them all stored in a non web accessible folder which is then served by a php script.
In terms of performance, Im guessing the web server option is best, but in terms of security which is best?