1
Answer

Changing the Location of the folder having images effecting the path stored in the Db.

Fahad Ashraf

Fahad Ashraf

12y
2.2k
1
I have a folder that stores the images and the path is stored in the Database.There are almost  2500+ images employee images stored there.If I want to change the physical location of this folder that has the images how do i manage the path of the path in the Db and the virtual path ,Root and all the related info.
Answers (1)
0
Amit Dhania

Amit Dhania

NA 659 164.6k 12y
Hi Fahad

Whenever we need to specify folder location it need to be set in config file. As there are chances of movement of files from one location other due many concerns.

Now in your case, you already using Database to store images path & location has been changed. Now what you can do here is, first specify new location in config file. Write a few line of code, fetching image name from database & prepare image path by concatenating image name & path from config file.


Next Recommended Forum