![]() |
Sergey Kornilov admin 8/4/2016 |
To setup an upload of files directly to the database you need to have two binary fields (one for main image and another one for thumbnail) and also one text field to save the file name. |
P
|
PHPRunnerExplorer author 8/4/2016 |
I'd prefer to leave the files directly on the server, as you're suggesting. But all of our other applications store them in the database, so I have to follow that pattern. To setup an upload of files directly to the database you need to have two binary fields (one for main image and another one for thumbnail) and also one text field to save the file name. I must add that saving files on file system is much easier to setup, you only need one text field to store multiple images, thumbnails etc. |