New installation - image storage question

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I installed nopCommerce with the sample database and now I'm poking around to get familiar with it. I changed the images storage settings to file system, but I'm not seeing any files being moved from the database to the server file system. Is there a background process that will move the files, or will the file system storage only apply to new images that are uploaded? Also is there any performance advantage over images stored in the database vs. the file system?
5 years ago
Usually this is a decision / change you will make at the start of setup of a website
Not something you are going to change later on

infinitemachinery wrote:
I'm not seeing any files being moved from the database to the server file system

This will only happen when the setting is "store image in the database". i.e. when a page is hit if the file does not exist at the correct pixel size then it wil be exported from the database.

Otherwise it will be as you said - the file system storage only applies to new images that are uploaded
i.e. It does not export in bulk for all images if you change the setting. Although there is a hack detailed in another post https://www.nopcommerce.com/boards/t/7267/store-images-in-file-system.aspx?p=2
Likewise if you change it back to store in database the system is not going to load up the database from the file system images

RE: infinitemachinery wrote:
Is there any performance advantage over images stored in the database vs. the file system?
I can’t see anything in the nop documentation but I found a page that discusses the options generally

https://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.