Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in multi site, files stored in sites/example.com/files/a.txt
in UAT site, files stored in sites/uat.example.com/files/a.txt
as both path stored in DB, dump DB from UAT and to live do not work, even you upload uat.example.com folder, as filefield find sites/uat.example.com/files/a.txt cannot be found, and try to output the link to sites/example.com/files/sites/uat.example.com/files/a.txt
the solution maybe, detect a multi site config, use files/a.txt as stored path instead of sites/uat.example.com/files/a.txt
Comments
Comment #1
quicksketchPlease search the queue. I've answered this a dozen times.
Comment #2
manoloka CreditAttribution: manoloka commentedYou may have answered this many times but this is the only post that shows for the keyword
"multi site"
Comment #3
joetsuihk CreditAttribution: joetsuihk commented#409884: a way to refresh filepaths stored in database? in short, core issue, un-fixable in this module.