Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.